• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 31. Using External Functions: Th... > Examining the Differences Between 16...

Examining the Differences Between 16-Bit and 32-Bit APIs

You might be familiar with the 16-bit API, but you need to be aware of some changes when working with the 32-bit API. These changes can cause you significant grief if you are not aware of them:

  • Window handles (hWnd properties) now are long integers in the 32-bit API. They are integers in the 16-bit API.

  • Function names are not case-sensitive in the 16-bit API. They are case-sensitive in the 32-bit API.

  • When working with the 16-bit API, you should reboot whenever you get a GPF because it is likely that the memory of your computer is corrupted. With the 32-bit API, each program runs in its own virtual machine. It therefore often is unnecessary to reboot simply because a GPF occurs.

  • Data types in the 32-bit API are exactly double what needs to be used in Visual Basic. This means that if you read C language documentation specifying that a particular API call requires a Double, you should use a Long with the Visual Basic call to the API function.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint