Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: pointers


Message #1 by "dana johnson" <pr1smiley@m...> on Wed, 19 Dec 2001 13:07:08 -0500
Dana,

that is a tricky question, and the answer is: who knows?
The only test you can do is to use the IsBadCodePtr API
to check if at least you can read the memory address
stored in a long (if that long is a pointer... and 
there is no way to know it!) then use the so famous
CopyMemory to copy the content of that address in...
well, you have to know the type of object it points to!

To me it seems very obscure. What are you trying to do?
Why aren't you use a Variant from which you can get all
the information you want? VB is not designed to work with
pointers.

m.
 

-----Original Message-----
From: dana johnson [mailto:pr1smiley@m...]
Sent: Wednesday, December 19, 2001 4:20 PM
To: professional vb
Subject: [pro_vb] RE: pointers


thanks Marco for the reply, but let me try to sort it out

how can I test to see if a variable contains a pointer to another variable


  Return to Index