I have beed developing some routines to permit me to "pack" byte arrays with 
strings and integers on a desktop under VB 5.0.  (The CDK versions of these 
functions don't seem to work under VB 5.0.)  These are then transferred to and 
read into a structure in C++ on the emulator.  I notice when I download the 
array generated under C by the handheld device, there is a null that appears to 
be inserted between the series of strings and the first of the series of 
integers in the record structure.  Does C/C++ typically insert a null between a 
string and an integer in a byte array?  This only happens at the transition 
from the strings to the integers in the record structure byte array.  It is 
simple to deal with, but I can't seem to find any basis for this in my C/C++ 
code (such as string sizes in the structure).  It is bothering me just a bit to 
have this behavior that I can't seem to justify.  Thanks.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to