Hi there,
I am trying to use marshal.ReallocHGlobal function.
My unmanaged dll requires call back functions that the unmanaged routine can
use to allocate, reallocate and free memory. For allocating and freeing
memory I can use the Marshal.AllocHGlobal and Marshal.FreeHGlobal functions.
But I am having trouble using the Marshal.ReallocHGlobal function. In that
it requires two intPtrs the second intptr indicates the size. How do it
convert my size in 'int' to IntPtr.
I would appreciate all help.
Thanks
Mattias Sj?gren - 22 Aug 2003 19:52 GMT
>How do it convert my size in 'int' to IntPtr.
(IntPtr)yourIntValue
Mattias

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