3 Steps to remember when making API calls from VB.NET

·          An error in declaration may lead  to memory exceptions (Remember the By Val Keyword)

 

·          API calls are tolerant of errors (either missing ByVal keywords when one is expected or using ByVal keyword for a variable that is expected to be called by reference). (Remember to Use Integer Parameters Instead of Long parameters)

 

·          In VB.NET the Long data type is 64-bits. Using Longs within your VB.NET applications just results in inefficiency. Using Longs in your API declarations will cause errors and even Memory exceptions.

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish