>I have been accessing the screen variables directly...
>...
>  winM = FrmGetWindowHandle(FrmGetActiveForm());
>  ptr = WinGetWindowPointer(winM)->displayAddrV20;
>  MemMove(&screenarray, ptr, 2000);


I'm glad you're trying to find a more reliable way of doing things, than
this. :-)

First thing I notice: perhaps you didn't put it in your message, but PLEASE
call ScrDisplayMode to find out if the screen is one-bit before you do
this.  You'll get very strange results if not.  Second, make sure that winM
and particularly ptr are nonzero.  That's another very obvious way to fail.
I imagine if you tried this on one of the color roms for 3.5 you'd see an
immediate crash.

Ok, that over with, what you should probably do instead is create an
offscreen window, shove your data into it, and then use the standard
WinCopyRectangle to move the data.  The Signature sample shows how to
create an offscreen window "by hand" and jam data into it.

The 3.5 APIs give you a much better way to do this, so use them if you're
on a new enough device.  But if you're on earlier systems, do what
Signature does to make the offscreen window, then use the APIs.

-David Fedor
Palm Developer Support



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to