Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Pointer

Status
Not open for further replies.

SiaMeX

Programmer
Jul 31, 2003
28
0
0
US
hi,
can somebody convert this code (c/c++) into a command button function?:
Code:
===================================================
   void *p;
   char str[256];
   
   p = &str;
   printf ("str's address is: %x", p);
===================================================
-> what i actually want to know is how to get the address of the str and displaying it on a MsgBox...

thanks! [peace]
 
Try this;

Code:
[blue]Dim [/blue]p [blue]As String[/blue]
MsgBox ("str's address is: " + Str(VarPtr(p)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top