Peder,
>1) Most gdi functions use structs defined elsewhere, e.g. in gdi32. Do I
>need to redeclare those structs or can they be imported using some
>directive or extern or something?
Yes they must be declared in managed code. To save some work you can
look for existing declarations at http://www.pinvoke.net.
>2) They also use types as DWORD and such. Other solutions say "just use
>int", but is this really the proper way to do it?
Yes, although uint may be more appropriate if the full value range is
used.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Peder Y - 25 Mar 2005 20:35 GMT
Thanks Mattias!
pinvoke.net also automagically solved another question I posted earlier,
so I guess I can happily go for a well-deserved Friday beer now.
- Peder -
Mattias Sjögren wrote:
> Peder,
>
[quoted text clipped - 12 lines]
>
> Mattias