It seems that with VB 5.0, I am only able to get the conversion functions from byte arrays to a string or an integer to work. The WORDToByteArray function isn't working for me. Neither is the BSTRToByteArray function.
I decided to try to write my own versions. The conversion routine from a string to a byte array seems to work, in that when I call the Palm version to convert from the byte array back to the string, I get the original string. Doing the conversion from an integer to a byte array isn't going as well. Is there any sample code out there that will run under VB 5.0 to do a conversion from an integer to a byte array? (I don't need the byte array to integer conversion, as this function is working.) I tried the code at: http://www.freevbcode.com/ShowCode.asp?ID=2066 It runs, but when I attempt to perform the reverse conversion from a byte array to an integer using the Palm OS functions, VB is giving me the same character that shows up when I try to print the byte array to a text box. (I had hoped to get a reassuring question mark, instead of a character.) Secondly, I need to append the integer byte array to the string byte array. I presume this is simply done using a "+" or an "&" for the two, variant type variables holding these arrays (as returned from the functions). Thanks for giving this some thought, and hopefully, a response. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
