Yes quite right, no asterisks.
But still....
If one uses the constructor:
public IntPtr (long i64)
It is still limited to the min and max of the Int32. ?
Why is the IntPtr important in interpolation? what about a void*?
I have seen a few P/Invokes use void* and some other sites use
a simular signature using IntPtr. (Dont ask me for the exact routine.
I dont remember, but at the time I was confused as to which one to
use.)
How is it that IntPtr is useful for COM?
"Arne Vajhøj" wrote:
TheMadHatter wrote:
??????????????????
What is the importance of IntPtr besides being, behind the scenes, a void
ptr, that gets cast into either an int* or an long* depending on the result
of sizeof(void*);
??????????????????
It is an extremely important type if you are mixing managed
and native code.
(and I assume you did not intend the asterisks in int* and long*)
Arne