PocketMatrix forums

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

about to start developing. Still some confusion

1. GAPI is made by microsoft. How are all these programs related to each other (gapi,gapidraw,pocketfrog,easyCE,overloaded). Is gapidraw a extension of gapi? is EasyCE a extension of gapi? Is everything just a wrapper of gapi? Is gapi sort of like the DirectX of handhelds and everything like a wrapper or GAPI?
So are there 4 choices when programming
gapi. pocketfrog. easyce. overloaded. right?

2. I am also confused if I will use embedded c++ 4.0 OR VC++ 6.0 OR VS.NET? (I have the 1st and 3rd installed)

basically what is everyones setup?
fzammetti · 04 Jun 2002, 17:01 UTC — Answers
Everyone else feel free to correct/clarify me...

(1) All the programs you named can be thought of as layers on top of GAPI. GAPI is a very simple piece of code that Microsoft created to essentially do one thing and one thing only: give you direct, exclusive and theoretically device-independant access to screen memory and hardware input like buttons. This gives you just the foundation for what you need for games and other graphics programming. On top of it you need sprites, palette manipulations and much more. The other packages you named all do that, but they build on top of GAPI (I think - do any of them actually replace GAPI with their own layer that does the same?)

GAPI I think can be thought of as the most basic part of DirectX, the lowest layer giving you access to video memory. Everything else sits on top of that.

(2) VC++ is for desktop apps, Embedded C++ is for PocketPC development. I don't think there is a VS.NET version available yet for PocketPC work, so you will be, like all of us I think, be using eVC++ of eVB++.
you probably don't want to use eVC++ 4.0... it's only for the pocketpc.net devices that will be coming out, but are not available yet. You'll want to use eVT 3.0
That is correct, only eVC++ 3.0 will work with the current batch of pocketpc's. As for VC++ 6.0, you can use that, but it is recomended that you don't.
BurningSheep · 04 Jun 2002, 19:35 UTC
recommended by who? I see the devs recommending to use VC++ 6 for development on your PC and use EVC++ 3 for compiling to test/run it on your PPC

[edit]
VS.NET would be just as good for desktop development/debugging
[/edit]
That seems pointless. The only ones I know who would say use VC++ 6.0 first are

1)those who program for win ce 2.11 (which you originally had to use 6.0)

2)Those who like jumping on the band wagon just to say evc++ sucks. It is actually just more work, since workspace files are not compatible between the two
BurningSheep · 04 Jun 2002, 21:08 UTC
no, that's not what I mean. I use a VS 6.0 project which compiles to native x86 code. So I can test and debug on a PC. I do this because I find uploading and debugging on my iPaq very annoying and time consuming. I'm also talking about game development here, if you are writing something that doesn't make use of gapi then just use EVC++ 3 and the built in emulator. And I use EVC++ 3 to compile the release builds for pocketpcs.
Ok, now I understand what you ment. Still, I enjoy seeing the thing run on my device.
UMCP_matt · 04 Jun 2002, 21:29 UTC — cant use 4.0?
I downloaded embedded c++ 4.0. Is that really true that I cannot pocketPC 2002 games with it? That seems really odd.

For one of the game libs I recall seeing a vc++ 7.0 part so maybe I can use vs.net

Is there a FAQ for someone like me trying to figure out the basics and what is out there?

I guess Ill go download the various packages and test them and see which one makes the most sense to me.

how bout a sound lib? which is the most widely/easiest to use?
yep, evc 4.0 is only going to be for PocketPC.net. As for sound, I've heard that fmod (www.fmod.org) is pretty good... that's what was used for Snails and Argentum
BurningSheep · 04 Jun 2002, 22:20 UTC — cant use 4.0?
UMCP_matt wrote:
For one of the game libs I recall seeing a vc++ 7.0 part so maybe I can use vs.net


Yeah, that's GapiDraw, check the GapiTools forum for more info. About the sound libs, there's fmodce (like michael said) and a freeware one called mikmod. But I don't have any real experience with these yet
For sound I would recommend MikMod. It's free (well GNU or whatever) and it performs reasonably well. It's integrated in the Overloaded library. To clarify some of the confusion: Overloaded is the successor to EasyCE. EasyCE and Overloaded both use Gapi. Gapi provides you with nothing more than the bare essentials, like returning a pointer to the screen buffer (wich happens to be different for every device). It does not provide support for sprites, fonts, sound and other convenient things; in fact, it does not let you create a fullscreen app easily. That's why there are numerous libraries. All of them look OK, I would suggest browsing a bit through them all before you decide. It might be hard to change later on.
All of the libraries allow you to develop on your PC using VC 6.0 btw. And about testing on the device: That sucks. :) It may look cool on the device, but not when you need to check out a tiny modification for the fourth time in a row. Besides, I still can't get proper debugging working using a USB connection. On the desktop, I get perfect debugging stuff, and boundschecker. :) So I rarely do a PPC compile at all. Usually just for final testing. And with EasyCE / Overloaded, I get away with that. :)
To expand on what Rob said, before eVC++ was released one had to purchase VC++ 6.0 and then purchase an add-on Windows CE Toolkit to create Windows CE software. With the release of Pocket PC (Windows CE 3.0) MS created standalone, free development platforms (eVC++, eVB). Personally, it is a very rare occurrence that I use VC++ 6.0 during any of my Pocket PC development.

I strongly recommend using Ethernet if you are going to do hard core Windows CE development. You would probably have a total of $150 or so in an Ethernet CF card, hub and NIC for your PC. However, it is without a doubt the fastest method of connecting to your Pocket PC, bar none. It is around 30 times faster than USB. I can download a 1 MB executable and initiate a debug session in around 5 seconds total. Stepping and hitting breakpoints is instantaneous. With USB it takes close to a full minute just to begin a debug session, and 20-30 seconds to step a single line of code.

Oh, WiFi (802.11b) is just as fast as Ethernet - I can tell no difference in performance if my device in within 20 feet or so of my WAP with power-saving off.

Dan East
UMCP_matt · 05 Jun 2002, 03:19 UTC — after 3 hours of testing
it looks like it comes down to

overload vs. gapidraw.

Since gapidraw lets me use vs.net I really like that. though it seems to use the MFC structure which I am not sure I like. But it seems I guess ignore it and use the MFC stuff just as a template for the real program.


but overloaded does look alot easier but then I would have to install my old vc++ 6.0

I am going to spend a few more hours with gapidraw

Are there any speed differences between gapidraw and overloaded?
BurningSheep · 05 Jun 2002, 08:41 UTC
I don't have VS.NET (well I have a beta lying around somewhere, never got to installing it), but it shouldn't be a problem to load a VS6 project into it, right? I'd figure MS would be smart enough to implement an import function for older project files...
The other way around shouldn't be too dificult as well, it shouldn't be too hard to build a VS6 proj based on a VS.NET project file. Haven't tried this out... yet
I believe one of the Overloaded users already tried to load the VC6.0 project files in VS.NET, and I believe there where no problems at all.

Please note however that the Overloaded library is not your average library. You can't just build a game with it and sell it, if you want that, go for EasyCE (or GapiDraw of course). The Overloaded libraries are part of the Overloaded / PocketMatrix Game Coding program: You build a program using these libraries, it gets approved by Overloaded, you earn $1000. Read more about it on http://overloaded.pocketmatrix.com .

You can of course use the Overloaded stuff to get into programming or to do some demos or whatever, but if you're serious about game development and you don't like the Overloaded philosophy, then avoid it. :)

- Jacco.
Conan · 05 Jun 2002, 13:52 UTC — which toolkit
In making your choice you need to also consider the attached conditions. So far as I can see only PocketFrog is totally without strings. With Overloaded you are entering into a development partnership of sorts ( It's a couple of weeks since I read the terms ). GapiDraw is almost without strings as all you have to do is notify the author of your release to get his OK.

I've been looking for the simplest system possible to do a conversion of a game & settled on PocketFrog because it's real easy once you figure out how to build and it supports just about every device.

Performance-wise all these toolkits are fast. They all use a similar method of drawing & blitting to the screen & there's quite a lot of cross fertilisation so ideas on enhancing performance are spread. They all suffer from a lack of Docs so you need to assume that you will be reading the source quite a bit.
UMCP_matt · 05 Jun 2002, 14:46 UTC — overloaded in VS.NET
I will have to try that..

I am just making games for a hobby so I am not trying to make any money or anything

I never quite understood vs.net and using old vc 6.0 code.. I did not think they were compatible but maybe I am wrong.
fzammetti · 05 Jun 2002, 23:04 UTC — A new library
You said your just programming your game for hobby, so this wouldn't apply to you, but...

By the end of the year, Omnytex will be releasing a new library as well. It will be priced inexpensively (somewhere around $100 per project with no restrictions or royalties beyond that).

Before it is released, we will have two games built on it out, Pig-Out in August and Chimera in I think September if I remember my timetables correctly.

It's not going to be as "good" as any of the current libraries frankly. What it will offer is good performance and above all else, simplicity. Your probably not going to build Halo with it, but it'll be pretty good for 2-D games.

It will consist of a single header in your project, nothing more. Everything is simple function calls, no complex object hierarchy to learn or other dififcult details to worry about. Include the header, and you can begin calling functions easily. Documentation will be very good, that much I promise!, and you of course have the full source to work with if you choose.

As I said, it won't be the best. But it will be cheap and have decent performance (for reference, on my stock Casio E-125 it can push approximately 188,000 pixels per frame and sustains right around 30FPS, and that's before serious optimization efforts and without trying to write the speed test demo in any intelligent fashion, just redraw the entire thing every frame - The game chimera can currently push over 100FPS!). Above all else, it will be easy to work with from including it in your projects, building and of course calling functions.
draklava · 06 Jun 2002, 01:43 UTC — overloaded in VS.NET
To clarify - I've successfully got EasyCE 2.0 and Overloaded to compile in VS.net

I use VS.net to debug and do most my development and then compile on EVC++3.0 when I want to test on device

It's been very quick for me and so far about 99% of what I do in VS.net compiles under Embedded VC++

Phantom set up the inital workspaces for VS and EVC (thanks Phantom!) so it was easy to get up and running

As for the differences between VS6.0 and VS.net - it basically boils down to MS trying to create a "Managed" environment where you use a bunch of new API calls that are interpreted at run time using a .net framework runtime lib (which will be commonplace on all PC's in the next couple months as apps are developed in .net)

It's very analogous to java where you code to the java API and then it compiles virtual machine code which is interpreted at run time - only instead of being bound to one programming language syntax (like java) you can use Visual Basic, C#, C++ or any other language that they write the .net API for - so you use one of those languages and the end result looks the same to the interpreter

VS.net also let's you write "Unmanaged" C++ which is the same as VS6.0 C++ or any other ANSI C++ - the idea is that you are not using their .net API - you are not compiling to VM and you do not get the security benefits of "managed" code like protected buffers and some other stuff I can't quite remember

For pocket PC dev I am not using .net API so it is unmanaged - although MS will be creating an embedded .net SDK so you will be able to use the same API calls to develop for both win32 and PPC (as far as I know this SDK is in beta but I have not tried it)

I think I'm rambling now so I'll stop! Check out MS official .net page for more info :P