Microsoft KB Archive/843498

= A device returns an error when you use the GETRAWFRAMEBUFFER global constant with Windows Mobile 2003 Second Edition software for Pocket PC and with Windows Mobile 2003 Second Edition software for Smartphone =

Article ID: 843498

Article Last Modified on 1/17/2007

-

APPLIES TO


 * Microsoft Windows Mobile 2003 software for Pocket PC Standard Edition
 * Microsoft Windows Mobile 2003 Second Edition software for Smartphone

-





SYMPTOMS
A device returns an error when you use the Game API (GAPI) GETRAWFRAMEBUFFER global constant with a high dots per inch (high-dpi) device. Specifically, the GAPI GETRAWFRAMEBUFFER global constant does not work with devices that do not have a standard linear frame buffer. This problem occurs with Microsoft Windows Mobile 2003 Second Edition software for Pocket PC and with Windows Mobile 2003 Second Edition software for Smartphone.



CAUSE
This problem occurs when the high-dpi device does not provide a raw pointer to linear screen memory. The GAPI programming model assumes that the high-dpi device provides a raw pointer to linear screen memory. However, we cannot guarantee that all high-dpi devices have a linear frame buffer. Currently, we have no support for non-linear display.



WORKAROUND
Use a Graphics Device Interface (GDI) when the GETRAWFRAMEBUFFER global constant fails on a high-dpi device.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

