At 03:10 PM 4/22/00 -0700, you wrote:
> if ( CharPtr == "thistext")
When the compiler sees "thistext" it is creating a chunk of static memory
in the .PRC somewhere and replacing the string with the address of the
static memory, so what you're realy getting goes something like this:
CharPtr x; // compiler allocates a 4 byte chunk of heap memory at address
0x00001000
CharPtr x = something(); // the address 0x00001000 now holds the address of
your string, say 0x00002000
/*
if (x == "thistext") // compiler puts aside memory in the PRC to hold the
string, say at 0x00015000,
so this line of code is more like:
*/
if (0x00001000 == 0x00015000)
/* no wonder it doesn't work */
Try:
if (!StrCompare(x, "thistext"))
and then look up the StringMgr in the documentation
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html