Strange VB problem

Athono

Member
Joined
Jan 10, 2006
Messages
5
Programming Experience
Beginner
How are pointers handled in VB?

I have a strange problem where I am linking to a DLL that was written in C.

One of the arguments in a function is a pointer to an integer.
 
Pass it as an integer. C treats nearly everything as a pointer, while VB hides this from you. It'll pass over the point as long as the parameters in the Declare are set to By Ref.

-tg
 
Moved to more appropriate forum. This question has nothing to do with VS.NET.

Depending on what the argument represents, you may also find it convenient to use an IntPtr.
 
Back
Top