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: Intermediate
Aug 20, 1997

Use ByVal When API Calls Cause Problems

If an API call is not achieving the desired or expected effects, try placing ByVal in front of parameters. Likely ones to cause trouble are strings and anything declared "As Any." The APIs that trip people up the most are the various INI file calls, SendMessage, and HMemCpy. Be very suspicious any time a parameter is declared As Any rather than as an explicit type, or if a string isn't declared ByVal.
Karl E.
 
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