Click here to Skip to main content
16,010,301 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combobox and SetItemData Pin
Michael P Butler20-Aug-02 0:25
Michael P Butler20-Aug-02 0:25 
GeneralRe: Combobox and SetItemData Pin
Nnamdi Onyeyiri20-Aug-02 0:53
Nnamdi Onyeyiri20-Aug-02 0:53 
GeneralRe: Combobox and SetItemData Pin
Russell Morris20-Aug-02 3:57
Russell Morris20-Aug-02 3:57 
GeneralRe: Combobox and SetItemData Pin
Michael P Butler20-Aug-02 4:19
Michael P Butler20-Aug-02 4:19 
GeneralC# and COM InterOp problems Pin
Rodney S. Foley19-Aug-02 21:03
Rodney S. Foley19-Aug-02 21:03 
GeneralRe: C# and COM InterOp problems Pin
Sijin19-Aug-02 21:15
Sijin19-Aug-02 21:15 
GeneralRe: C# and COM InterOp problems Pin
Stephane Rodriguez.19-Aug-02 21:45
Stephane Rodriguez.19-Aug-02 21:45 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 2:14
leppie20-Aug-02 2:14 
Agreed.

I think I have an easy solultion.

When defining structs , use the Platform Invoke Types table, but DWORD dont have to be uint like WORD dont have to be ushort, all u need to make sure is the width (bit size) corresponds to c++ unmanaged width.

EG: DWORD is 32bits wide, so u can use uint or int, whatever suites your needs. Int seems to be the prefered for DWORD and short seems for WORD. This seems logical as unsigned intergers will just require alot of extra casting.

However, I am not so sure about return values from functions e.g BOOL , which is 32bits wide, but i'm not really sure about the width of a Managed Boolean.

Hope this helps.

PS: Anyone who has some good experience with this might wanna write a comprehensive article for us C# only dummies Smile | :) .


MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
GeneralRe: C# and COM InterOp problems Pin
Stephane Rodriguez.20-Aug-02 3:25
Stephane Rodriguez.20-Aug-02 3:25 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 4:13
leppie20-Aug-02 4:13 
GeneralRe: C# and COM InterOp problems Pin
Stephane Rodriguez.20-Aug-02 4:49
Stephane Rodriguez.20-Aug-02 4:49 
GeneralRe: C# and COM InterOp problems Pin
Stephane Rodriguez.20-Aug-02 4:52
Stephane Rodriguez.20-Aug-02 4:52 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 5:02
leppie20-Aug-02 5:02 
GeneralRe: C# and COM InterOp problems Pin
Stephane Rodriguez.20-Aug-02 6:13
Stephane Rodriguez.20-Aug-02 6:13 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 6:50
leppie20-Aug-02 6:50 
GeneralRe: C# and COM InterOp problems Pin
Stephane Rodriguez.20-Aug-02 7:29
Stephane Rodriguez.20-Aug-02 7:29 
GeneralRe: C# and COM InterOp problems Pin
James T. Johnson20-Aug-02 7:32
James T. Johnson20-Aug-02 7:32 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 7:40
leppie20-Aug-02 7:40 
GeneralRe: C# and COM InterOp problems Pin
James T. Johnson20-Aug-02 7:47
James T. Johnson20-Aug-02 7:47 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 7:57
leppie20-Aug-02 7:57 
GeneralRe: C# and COM InterOp problems Pin
James T. Johnson20-Aug-02 8:01
James T. Johnson20-Aug-02 8:01 
GeneralRe: C# and COM InterOp problems Pin
leppie20-Aug-02 10:33
leppie20-Aug-02 10:33 
GeneralBuild Error Pin
albean19-Aug-02 13:01
albean19-Aug-02 13:01 
GeneralRe: Build Error - Solved Pin
albean19-Aug-02 14:37
albean19-Aug-02 14:37 
GeneralDesign question Pin
Christian Graus19-Aug-02 12:28
protectorChristian Graus19-Aug-02 12:28 

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.