So I finally got my Palm Vx from Palm (after 1.5 months). Up to now I've
been developing using CW6 with the 3.1 SDK for my Palm Pro running 3.0.2.
My software crashed on my new Vx. I figured it would, but I'm not sure I
understand why.
So I installed the 3.5 SDK thinking that all I'd have to change in my code
is the ScrDisplayMode to WinScreenMode. I was mistaken. Before I go
through changing all my code, I'd like to understand whats going on.
My questions have to do with compatibility. As long as I dont call API
functions that are only in 3.5, will my software run on earlier 3.X versions
if I compile it using the 3.5 SDK? What about the ScrDisplayMode /
WinScreenMode? Obviously if I use the 3.5 SDK, I have to use winScreenMode,
but is this compatible with pre 3.5 OSs?
Then the question of why my working software crashes on the Vx. Using a
debug rom I got 'bus errors', and found in the archive about problems
drawing to the screen with the debug rom. So I switched to the non debug
version. CW gives me a blank error when my program tries to draw a grey
pixel directly to an offscreen window. Everything else with the program
works, its the drawing directly to the window that crashes it. Will programs
compiled with an SDK older than the current OS typically work? THe Palm KB
only seems to have articles on greyscale for pre 3.5 OSs. Do I have to
change the way I am drawing grey to the screen?
UInt32 newDepth = 2
err = ScrDisplayMode (scrDisplayModeSet, NULL,NULL,&newDepth,NULL);
*(pWinBuf + offset) = 0xc0;
Any clues, answers, or FAQs would be great.
Thanks
-Mike
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/