
-----------------------------------
liangchenen
Mon Oct 03, 2005 11:00 pm

pointes in VB
-----------------------------------
how to make a pointer in VB.

Also, how do you pass by reference in VB?

-----------------------------------
wtd
Tue Oct 04, 2005 1:12 am


-----------------------------------
VB6 or VB.NET?

For VB.NET, to pass by reference, you'd have something like:

Sub Foo(ByRef a As Integer)
   ' ...
End Sub

Pointers you don't really have.

-----------------------------------
Monstrosity_
Tue Oct 04, 2005 12:01 pm

Re: pointes in VB
-----------------------------------
how to make a pointer in VB.

Also, how do you pass by reference in VB?
In VB6 (not sure about .NET) there are three undocumented functions

VarPtr:  Gives the memory address of a variable
StrPtr:   Gives the memory address of the contents of a string
ObjPtr:  Gives the memory address of the object

-----------------------------------
liangchenen
Tue Oct 04, 2005 2:45 pm


-----------------------------------
what if I have something like this:


void add( int a [500]. int b[500])
{ 
 int x;
 for (x=0;x