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.
 

TechGnome

Well-known member
Joined
May 23, 2005
Messages
896
Programming Experience
10+
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
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,350
Location
Sydney, Australia
Programming Experience
10+
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.
 
Top Bottom