Click here to Skip to main content
15,896,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: Active X Control In C# Web App Pin
Adrian Metcalfe21-Sep-05 21:22
Adrian Metcalfe21-Sep-05 21:22 
GeneralRe: Active X Control In C# Web App Pin
Judah Gabriel Himango22-Sep-05 4:04
sponsorJudah Gabriel Himango22-Sep-05 4:04 
GeneralRe: Active X Control In C# Web App Pin
Adrian Metcalfe22-Sep-05 4:35
Adrian Metcalfe22-Sep-05 4:35 
GeneralRe: Active X Control In C# Web App Pin
Judah Gabriel Himango22-Sep-05 5:49
sponsorJudah Gabriel Himango22-Sep-05 5:49 
GeneralRe: Active X Control In C# Web App Pin
Adrian Metcalfe22-Sep-05 21:42
Adrian Metcalfe22-Sep-05 21:42 
GeneralRe: Active X Control In C# Web App Pin
Judah Gabriel Himango23-Sep-05 4:30
sponsorJudah Gabriel Himango23-Sep-05 4:30 
QuestionIncluding a C struct in a C# application Pin
Cabbi21-Sep-05 4:00
Cabbi21-Sep-05 4:00 
AnswerRe: Including a C struct in a C# application Pin
Judah Gabriel Himango21-Sep-05 7:40
sponsorJudah Gabriel Himango21-Sep-05 7:40 
You can redefine the struct in C# and use it from there as if it were a C struct. For instance, here is a a C# equivalent to widely used POINT C struct:
[StructLayout( LayoutKind.Sequential )]
   public struct POINT {

      public int X;
      public int Y;
}


I can now pass this POINT to a C function that takes the POINT struct as defined in C. Note that the LayoutKind.Sequential is necessary for interoping with C code; this attribute tells the CLR to layout the struct in memory exactly as shown in code, which is necessary for C to work with.

I recommend using this site[^] for correct interop definitions and practices.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango


QuestionA question about the "checkboxlist" Pin
shanzy21-Sep-05 3:33
shanzy21-Sep-05 3:33 
AnswerRe: A question about the "checkboxlist" Pin
Stefan Troschuetz21-Sep-05 3:55
Stefan Troschuetz21-Sep-05 3:55 
GeneralRe: A question about the "checkboxlist" Pin
shanzy21-Sep-05 4:16
shanzy21-Sep-05 4:16 
GeneralRe: A question about the "checkboxlist" Pin
Stefan Troschuetz21-Sep-05 4:29
Stefan Troschuetz21-Sep-05 4:29 
GeneralRe: A question about the "checkboxlist" Pin
shanzy21-Sep-05 4:17
shanzy21-Sep-05 4:17 
Questionhidden info in text files Pin
akshayswaroop21-Sep-05 3:25
akshayswaroop21-Sep-05 3:25 
AnswerRe: hidden info in text files Pin
Dario Solera21-Sep-05 6:29
Dario Solera21-Sep-05 6:29 
QuestionGet access to the current method-context? Pin
Uwe Keim21-Sep-05 2:31
sitebuilderUwe Keim21-Sep-05 2:31 
AnswerRe: Get access to the current method-context? Pin
Andy Brummer21-Sep-05 4:10
sitebuilderAndy Brummer21-Sep-05 4:10 
GeneralRe: Get access to the current method-context? Pin
Uwe Keim21-Sep-05 4:53
sitebuilderUwe Keim21-Sep-05 4:53 
GeneralRe: Get access to the current method-context? Pin
Andy Brummer21-Sep-05 5:35
sitebuilderAndy Brummer21-Sep-05 5:35 
QuestionCapture with Windows Media Encoder SDK Pin
shmarov21-Sep-05 1:48
shmarov21-Sep-05 1:48 
QuestionAvoid stuck while reading a large textfile Pin
Seraphin21-Sep-05 0:14
Seraphin21-Sep-05 0:14 
AnswerRe: Avoid stuck while reading a large textfile Pin
Guffa21-Sep-05 0:41
Guffa21-Sep-05 0:41 
GeneralRe: Avoid stuck while reading a large textfile Pin
Seraphin21-Sep-05 0:48
Seraphin21-Sep-05 0:48 
GeneralRe: Avoid stuck while reading a large textfile Pin
Guffa21-Sep-05 1:24
Guffa21-Sep-05 1:24 
GeneralRe: Avoid stuck while reading a large textfile Pin
Seraphin21-Sep-05 1:49
Seraphin21-Sep-05 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.