<DllImport("kernel32.dll", ExactSpelling:=True)> _
Friend Shared Function GlobalAlloc(ByVal flags As Integer, ByVal size As Integer) As IntPtr
End Function
7/6/2008 2:54:56 AM - genidiot@genidiot.com-68.21.231.134
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.