PocketMatrix forums

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

Newbie Question

I'm new to the whole Pocket PC programming thing. I've downloaded all the SDKs and eMbedded VC++ 3. I have extensive experience with normal windows programming, but is there any good information on setting up eVC++ to compile GapiDraw apps? I tried, and it compiled, but it wouldn't run in the emulator. I was using the standard Pocket PC option in the project. I was thnking maybe I should use the 2002 SDK instead, but it didn't offer the same processors, or a compile for the emulator. I know its kind of a stupid question, but I read stuff and played around with all the SDKs for a few days now and have gotten nowhere. I'm interested in pocket PC developing, but am getting a bit frustrated with the compiler.

Thanks in advance
One quick point I forgot to add. It compiled fine, and uploaded to the emulator, but when I tried to run it from the start menu, nothing at all happened. I was just using the sample code given in the "Creating a new project" section of the GapiDraw SDK. It ran fine when I compiled it in VC.NET. Is it just a problem with the emulator or me?
Did you think to copy to correct DLL over to the emulator?

If not, this is probably why it didn't work. Copy the DLL to the \Windows directory and you should be set. To copy the DLL start eVC and use the "File Viewer" from the tools menu.

--Eric
I'll give that a try, thanks
Ok I got it running on the Pocket PC 2002 emulator, but still have no luck with PPC2000 emulator. Thats ok, but the only concern I have is the PPC2000 SDK seems to beable to compile to a lot more processors than the PPC2002 SDK can. PPC2002 can only compile to ARM and x86, where the PPC2000 will do ARM, SH3, MIPS and x86(emulator).

I'm new to this so .. maybe I'm just still doing something wrong? I used the right libraries and DLLs for the seperate emulators.
As was stated, the DLL not being there is probably the cause... however, I would ask the question: why are you using the emulator at all? One of the truly beautiful things about GD is that you can do all your development natively on the desktop. True, you need Visual C++ for that as opposed to the free eMbedded tools, and if that's the reason than I of course understand... If you have VC++ though, or can get it, I highly recommended going that route rather than the emulator.

I previously was developing with eVC++ and the emulator, but now that I've been just using VC++, I don't touch eVC++ except to compile for a real device. Life is certainly better in many ways!
I plan to use VS.NET, but I wanted to make sure I could compile and test programs on the emulator. Thats what I was having trouble setting up. I don't have a real PPC yet, and I wanted to know if it worked or not, which is why I need the emulator. Is it safe to just develop for the PPC2002. Did they narrow down the available processors for those machines? (since there are only 2 available in 2002 SDK instead of 4 in 200?)
Using the emulators is inherently painful and should be avoided if at all possible. Using GapiDraw to develop on the desktop is definately the way to go, with occasional builds to the device(s) for periodic testing. I typically develop for 2 - 3 weeks without testing on an actual device.

The SH3 is a dead processor, and MIPS is pretty close to death although there is still a user base for the processor. Almost all new development focuses on the ARM/XScale.

If an emulator is a necessity, EM2002 is the one to use - EM2000 is somewhat unstable and more trouble than its worth.
I completely agree, except that I will say that when I do use the emulator, I've always used EM2000... I've never had the stability issues that many have, nor have I had all the trouble with eVC++ that everyone else seems to. But I think I'm the exception rather than the rule in both cases.
"The SH3 is a dead processor, and MIPS is pretty close to death although there is still a user base for the processor. Almost all new development focuses on the ARM/XScale"

So, I'm assuming XScale is the x86 compile (since its intel made), but what chips does ARM encompass? Is that what the iPAQs that have the Samsung processor run on?

Sorry if these seem noobish, but I'm really interested in this and have very little knowledge on the topic.

Thanks again for all the info
Don't ever apologize for asking a question... If I felt bad every time I asked a simplistic question, I'd never learn anything! (Just ask ppcStudios about me and stupid questions... time to remind me about the other day I think :) )

XScale is the latest version of the ARM processor. I always get the version numbers wrong, but I believe XScale is Arm v4 (might be v5 though). In any case, it's not the same as x86, which is your desktop.

Microsoft has mandated that all PocketPC's since 2002 (the PocketPC 2002 OS that is, not the year 2002) use ARM processors, and XScale is the next evolution. If you target the ARM processor, your app will run on XScales as well (anyone else know if targeting XScale will run on an older ARM? I'm not sure).

ppcStudios was referring to the fact that the SH3 is not used in anything any more and the installed base is vanishishingly small. The MIPS processor is also not used in any new devices, and the installed base is rapidly shrinking, but there is still enough MIPS-based devices out there to support it if you can (I personally still use a Casio E-125, which is MIPS-based). But your main concern can safely be ARM and XScale-only and you won't lose enough sales to fret about (but again, you'll gain some browny points with some people if you can support MIPS at least, SH3 if your a masochist (sp?) ;) )