PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PNG Images - vc++ and evc++

I'm having problems with PNG images in PF. When I compile in evc++ and download to actual device, everything works fine. The program runs and the PNG image displays perfectly.

However, when I compile in visual c++ (NOT embedded) and run the executable, I get a fatal error when the program tries to draw the PNG image to the window. I have to click ABORT to get the program to stop. I have the PNG listed as a "IMAGE" resource type in the .rc file.

This is a real pain because I like to compile and debug in Visual C++ on my computer and only use embedded visual c++ for the final debug on the pocket PC.

Has anyone else run into this problem?

Thanks!
:D
PF uses the MS Image Decompressor DLL, IMGDCMP.DLL (?). It only supports the .png format in Windows CE.

Of course, PF 0.8.0 has support for PNGs with alpha layers, as well as .jpgs...

*wishes on a star*

In my current project, I'm actually using:
Code:

#if defined(_WIN32_WCE)
#define IMAGE_HEADER "res\\header.png"
... Lots more
#else
#define IMAGE_HEADER "res\\bmp\\header.bmp"
... Lots more
#endif


So I can still build in VC and test it with .BMPs

-John
Thanks John! That's just what I needed...it works perfectly!

:D