Have you allocated memory to charRatio? If you don't assign memory to it
with MemPtrNew, the memory that it points to can change without notice,
since your program hasn't reserved it from the system.
Regards,
Steve
-----Original Message-----
From: Robert C. Thayer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 11:36 AM
To: Palm Developer Forum
Subject: help with MemHandleNew
Hi,
I'm just starting to code for the palm and I have a quick
question...
When I call the following statement in code warrior r6:
<code>
NewTxtRatioH = MemHandleNew(StrLen(charRatio) + 1);
</code>
the CharPtr charRatio gets cleared and sometimes just garbage! Why is this
doing with?
any help would be great!
-clint
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Junji
Hata
Sent: Wednesday, March 08, 2000 3:56 PM
To: Palm Developer Forum
Subject: Bitmap appears incorrectly
Hi there,
I'm a beginner of palm application programming and having a trouble
to display bitmap objects on the screen, and I think I need help.
I draw some bitmap images in Codewarrior lite's resourse constructor
and set everything up so that they appear in the application's screen
as a part of the form. All of them show up okay in Codewarrior's
window, but when I download .prc file to the actual device (Handspring
Visor), all of them appear as just black boxes. I've been investigating
why this happens over a week, but I still have no clue.
Does anyone have any hunch why this is happening? Any info will be
greatly appreciated. Thanks a lot in advance!
--
Junji Hata
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html