Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Advanced
Jul 30, 1997

The Address of a Variable

THE ADDRESS OF A VARIABLE VB5 includes a built-in VarPtr function (see tip "Use the Object Browser to Discover Undocumented Features"), but this function isn't available in VB4. The VB4 runtime library does include this function, but you must declare it first: #If Win16 Then Declare Function VarPtr Lib _ "VB40016.DLL" (variable As Any) _ As Long #Else Declare Function VarPtr Lib _ "VB40032.DLL" (variable As Any) _ As Long #End If This function is useful when passing an external API routine a Type structure, and one of its fields is the address of another variable or record.
Francesco Balena
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date