all groups > dotnet interop > july 2006 >
You're in the

dotnet interop

group:

DLL import Types


DLL import Types pigeonrandle
7/25/2006 4:57:16 AM
dotnet interop: Hi,
Is there a list detailing equivalent types in c# for imported dll
functions?

ie HWND = IntPtr
DWORD = Int32
etc.

I have been looking at pinvoke.net and there is no consistency between
the various types in the declarations (some define HWND as int, some as
IntPtr) - all very confusing ;(- if you get my meaning?!

Cheers,
James Randle.
Re: DLL import Types pigeonrandle
7/25/2006 3:56:13 PM
James,
How you doing? I haven't spoken to you since that schizophrenic
incident last year, anyway, in answer to your problem I found this link
....

http://msdn.microsoft.com/msdnmag/issues/03/07/NET/default.aspx?fig=true#fig1

which should give us a fighting chance at constructing our own
dllimport declarations (because, lets face it, most of the prewritten
ones we have found have been rubbish).

And also the article it came from (incase you cant be bothered with
backspace ;o).

http://msdn.microsoft.com/msdnmag/issues/03/07/NET/

Keep in touch,
James.



[quoted text, click to view]
Re: DLL import Types quension NO[at]SPAM gmail.com
7/25/2006 10:43:58 PM
There's also this page:
http://msdn2.microsoft.com/en-us/library/ac7ay120.aspx
and the related sections nearby.
AddThis Social Bookmark Button