PocketMatrix forums

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

How can I run GapiDraw sample project on my WinCE device?

Patrick Yoo · 27 Jul 2009, 09:52 UTC
Hey
I'm having difficulties to run the sample program "Minimal" on my ARMV4I CPU device.
Here is my test circumstance.

Visual Studio 2008 SP1
GapiDraw 4.2 Evalution

My device
CPU: ARMV4I
O/S: Windows CE 5.0
Resolution: 480x272
Physical Memory: over 32MB

1. Install GAPI for HPC 4.03 on the device
2. Run GAPISetup and activate emulation mode
2. Open samples/win32/Minimal/vs2008-mobile
3. Set the solution platform as Windows Mobile 5.0 Pocket PC SDK (ARMV4I) and build
4. Copy "Minimal.exe" to the device

If I run the "Minimal.exe", the following message pops up.
Cannot find 'Minimal' (or one of its components). Make sure the path and filename are correct and that all the required libraries are available.

So I looked up the import table and found that some additional dlls are needed to run "Minimal.exe" such as DDraw.dll, COREDLL.dll, ole32.dll, and aygshell.dll.
All dlls except aygshell.dll are in windows folder. So I downloaded some dummy aygshell.dll for WinCE and copied it to windows folder, but still getting the same result.

I think the sample program "GAPIDrawSimpleDemo.exe" of GAPI for HPC is just same as the sample program "Simple.exe" of GapiDraw sample.
And the emulation mode of "GAPIDrawSimpleDemo.exe" works fine on my device, but not "simple.exe".
As checking import tables of both GAPIDrawSimpleDemo.exe and simple.exe, I noticed that GAPIDrawSimpleDemo.exe imports only COREDLL.dll and imgdecmp.dll, but simple.exe imports above 4 dlls (DDraw.dll, COREDLL.dll, ole32.dll, and aygshell.dll).

My goal is just simply run the GAPI sample program on my device. Any advice will be appreciated.
Patrick Yoo wrote:4. Copy "Minimal.exe" to the device


Which version did you try? The PPC2003 version or the WM 5.0 version?

The PPC 2003 version of GapiDraw is only dependent on GAPI (gx.dll) on the device.

The WM 5.0 build does not use GAPI, but uses DirectDraw and AllKeys instead.

The minimal application uses some calls to aygshell etc for toolbar management, so check if you need to comment out some rows in GapiApplication.cpp to meet your device UI for it to work.

Sincerely
Johan
Patrick Yoo · 28 Jul 2009, 01:06 UTC
Johan wrote:

Which version did you try? The PPC2003 version or the WM 5.0 version?

Johan



Thanks Johan!!!! Now it works very well.