Hi,
following problem:
I've got a pointer to EAN. I want to copy this number "26020060" into a
string.
StrNCopy ( EAN, (CharPtr)decodeDataMsg.data,
sizeof((CharPtr)decodeDataMsg.data));
EAN = "23020060"
*EAN = '0'
but I only get "23020060" back and not a real string like this:
EAN = "23020060"
[0] = "2"
[1] = "6"
....
I need the first 2 digits to control further functions.
EAN is declared as:
char *EAN = { 0 };
decodeDataMsg is declared:
MESSAGE decodeDataMsg;
/*******************************************************************
* Message structure used to hold decoder messages *
* Used by ScanGetDecodeData to return barcode type and data *
*******************************************************************/
typedef struct tagMESSAGE
{
int length; // length of the data
int type; // contains the barcode type when the msg is DecodeData
int status; // should be STATUS_OK
unsigned char data[MAX_PACKET_LENGTH]; // the message data
} MESSAGE;
Thanks.
Sebastian Dehlinger
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/