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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

btrieve api and visual basic

Status
Not open for further replies.

TPetersonFlorida

Programmer
Aug 8, 2003
76
US
do i need to do anything special to integer, single, double data types like i do with long integer data types? i'm trying to access our btrieve files using the api from within visual basic 6.0 and i know that for the long integer types you have to use the CopyMemory function to get the data to come in correctly. But what about integer, single, and doubles? any help would be great!
 
You should use CopyMemory any time the structure alignment could be pushed out because of a numeric type. This includes Single, Double, Integers, Longs, etc. As a general rule, I always use CopyMemory for non-string fields.

info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top