Question Equivalent of IntPtr.

priyamtheone

Well-known member
Joined
Sep 20, 2007
Messages
96
Programming Experience
Beginner
What is the equivalent of IntPtr of Vb.Net in Vb6? For example what'll be the equivalent of the following 2 lines in Vb6?
Dim htok As IntPtr
htok = IntPtr.Zero

Thanks.
 
help said:
The IntPtr type is designed to be an integer whose size is platform-specific. That is, an instance of this type is expected to be 32-bits on 32-bit hardware and operating systems, and 64-bits on 64-bit hardware and operating systems.
32bit integer data type in VB6 was called "Long", it didn't have any 64bit data type. IntPtr.Zero would equal the integer value 0.
 
Back
Top