Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How do we handle pointers in VB


Message #1 by "Harmeet" <harmeet_bhatia@y...> on Wed, 22 Aug 2001 16:19:17
The short answer is that VB does not handle pointers, but...
there are workarounds.
If you give us more details, maybe we can help.

You can also take a look at any good reference to calling
API from VB. But be careful that COM objects are a little
different about parameter definitions. COM wants you to
use only parameters it knows about. The biggest problem
is who allocates memory and who frees it; VB (and COM)
handles this behind the scenes only for these types of
objects. In other cases (like for API) you are on your own,
and if you are not careful we can cause huge memory leaks
(I have been there)  

m.


-----Original Message-----
From: Harmeet [mailto:harmeet_bhatia@y...]
Sent: Wednesday, August 22, 2001 9:19 AM
To: professional vb
Subject: [pro_vb] How do we handle pointers in VB


Hi,

I have a COM DLL which has number of functions which require pointers to 
be passed as parameters to the functions, which I could use in C++ , but 
what I want to know is there anyway we can pass pointer to the COM  based 
fuctions, or in short how do we handle pointers (memory address)in VB.

Thanks

harmeet    

  Return to Index