PocketMatrix forums

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

Emulator Help

Hi- i'm pretty much new to the CE scene, but anyways.. I compiled a basic program and droped it into the programs menu of the PocketPC emulator folder. I start the PPC emulator and I get the mesage "'sampleapp' is not a Valid WinCE application'

then i tried just double clicking it and I get the mesasge "'sampleapp' is not a valid Win32 application" Whats going on?
To compile for the emulator, you will need to do a few things:
1.) Get the emulator version of the GAPI off the internet. You can get it at http://frogengine.net-connect.net/pocke ... i_emu.html
2.) EasyCE as distributed requires a few changes for it to compile on the emulator. There is a thread earlier about the new verssion of EasyCE (1.6). midway down the first page, a discussion starts about use of the emulator for debugging PPC apps. Refer to this for more information.
3.) Create a new project for the app: the project that comes with EasyCE doesn't have settings for the emulator (I think Phantom removed them - because of number 2, easyce will not work as provided with the emulator). If you create a new project, it will have them. When you create a new project, you will have to set the project to link with "gx.lib". With the emulator, the file will have been created when you compiled the Emulator version of the GAPI.

If you need any more help, post another reply. Since I don't know how much programming knowledge you have for regular Win32, I can't be sure that this will help, but I can help more if this doesn't. If you have Visual C++ 6, you can pretty much skip all this and use that to debug the app itself - it's much easier that way, but it's not the only way.
i suppose you are running eVC instead of VC.

then i would ask, are you creating a MFC apps or a game making use of EasyCE ?

also, make sure you selected the correct processor type and platform for compilation (under the WCE configuration toolbar). You need to select "WCE x86emu" for processor type and "PocketPC (Emulation)" for the platform.

if the above are correct, you dont have to manually drop your program into "programs menu" because after compilation eVC will do that for you (place the EXE under programs menu). if you click on RUN eVC will even execute the program by itself.

good luck!