>I am writing a C++ wrapper and need to marshal a
>System::Drawing::Rectangle to an LPRECT. Is this possible, and if so,
>how do I go about doing this?
Well you can't pass a direct pointer since they don't share the same
internal representation. So you have to declare a RECT struct, fill it
with the values from the Rectangle, and then pass the RECT address to
the funtion.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.