Accessing fixed length data field
Database
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I'm trying to access some data from a table that has fields defined as 200 character long strings. Problem is that it appears as if the 200 characters are being used as a byte array with either 0xFF or 0x00 stored as the values. The presence of the 0x00 values effectively terminates the string if you try and read the field using a string variable so you only ever get the first part up to the first 0x00 character. How can I read this field as an array of unsigned chars instead? I am at present coding in C++, using MFC with an ODBC connection to the database which is a Btrieve database. Many thanks for any help that you are able to provide. Andrew