Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

A memory DC stores images in memory before sending them to an output device. This allows you to treat a portion of memory as a virtual device.

Create a memory DC for a device by calling the CreateCompatibleDCfunction and supplying a handle to the DC of the device.

When you call CreateCompatibleDC, Windows Embedded CE creates a temporary monochrome bitmap that is 1 pixel by 1 pixel. Then it selects the bitmap into the DC.

Before you begin drawing with this DC, use SelectObjectto select a bitmap with the appropriate width and height into the DC. Then you can use the DC to store images.

Windows Embedded CE does not support writable memory DCs. The functionality described here is for use in loading bitmaps and transferring them to surfaces in DirectDraw.

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.