PocketMatrix forums

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

serious developer question

jcdenton999 · 11 Jun 2001, 12:35 UTC
OK, this is serious now, and i dont wanna hear anybody saying that i shall do something different!

Does anybody of you developers now good web-pages with tutorials or stuff to learn making ce apps? I mean how to start? should i buy books about it or use internet? pleeze gimme some advice, i really mean it serious! I already got visualbasic experience, very vew C++ experience, and i already did things like calculators in Embedded VisualBasic!
But i now wanna learn embedded visual C++ as its definately the best (i guess) developing tool!

so please help me thx!
Chris Edwards · 11 Jun 2001, 14:26 UTC
read the latest news post :)
Moose or Chuck · 11 Jun 2001, 14:34 UTC
eMbedded C++ is identical to Windows C++, just buy any Windows programming book and it will get you started. But if you want to program a game using GAPI then you can find tutorials on the internet or buy a book, search on Amazon.com
Wait one sec. let me find you some good books.
Moose or Chuck · 11 Jun 2001, 15:02 UTC
Complete Idiot's Guide to C++
This will give you a basic understanding of the language. I suggest starting with this book. It won't teach you Windows programming, but that's more difficult to understand anyway. We'll get to that.
Moose or Chuck · 11 Jun 2001, 15:06 UTC
PocketPC Game Programming
This book is great. Written by my favorite author/game programmer Andre' Lamothe. He includes a nice sense of wit into his books, making them interesting whilst giving you inside tips. He also helps you start good programming habits which will help you later in your career.
GameDev.net has some great references for all kinds of programming.
I'll be right back in a minute with some more links
[EDIT] Read below for your first book choice.Last modification: Moose Master - 06/11/01 at 13:06:02
I recently purchased Pocket PC Game Programming and I found it to be good for people who know little to nothing about Windows programming or the Pocket PC architecture.  

I personally found it to contain mistakes regarding GAPI, and it didn't go into detail about important things such as displays that are native landscape mode (iPaq) or how to use the waveOut APIs for audio mixing.  The author has an annoying style of using a lot of exclamation marks (Is that LaMothe's influence?).  He also drops the ball quite often with statements like, "This code is nowhere near optimal but I'll leave that up to you!"  Great.  Tell me why I spent $45 on this again?

Anyway, it probably is a good book if you haven't done a lot of Windows or real-time graphics programming.  Beginners could do a lot worse I suppose.

Moose or Chuck · 11 Jun 2001, 15:16 UTC

I recently purchased Pocket PC Game Programming and I found it to be good for people who know little to nothing about Windows programming or the Pocket PC architecture.  

I personally found it to contain mistakes regarding GAPI, and it didn't go into detail about important things such as displays that are native landscape mode (iPaq) or how to use the waveOut APIs for audio mixing.  The author has an annoying style of using a lot of exclamation marks (Is that LaMothe's influence?).  He also drops the ball quite often with statements like, "This code is nowhere near optimal but I'll leave that up to you!"  Great.  Tell me why I spent $45 on this again?

Anyway, it probably is a good book if you haven't done a lot of Windows or real-time graphics programming.  Beginners could do a lot worse I suppose.

Ya, I don't think it said for beginners, that's why I was hesitant to post that for a beginner's first book. I think that must be the other author's style of writing. LaMothe usually optimises his code so much that it becomes difficult to read at some points. And he says that too. But that will catch you up on how to optimise stuff, I guess.
Moose or Chuck · 11 Jun 2001, 15:18 UTC
And here's a quick tutorial so you can start using your Visual C++
Code:

// MessageBox Hello World Program
#define WIN32_LEAN_AND_MEAN

#include <windows.h>      //main windows header
#include <windowsx.h>      //macros

// main() entry point
int WINAPI WinMain(HINSTANCE hinstance,
                          HINSTANCE hprevinstance,
                          LPSTR lpcmdline,
                          int ncmdshow)
{
     MessageBeep(0xFFFFFFFF);      //system speaker beep
     
     //call API MessageBox with Null parent window handle
     MessageBox(NULL, "My first Windows Program",
           "Hello",
           MB_OK | MB_ICONINFORMATION);

     //exit program
     return(0);
} //end WinMain

In DOS this would take up maybe 2 lines, just posing Hello World, that is. So it is more complicated, but most of that is just a shell that is used over and over that you don't really need to worry about.
I'm probably not helping you by giving you useless information like this, but it was fun posting it.
This will create a message box that says hello and waits for you to press the OK button. You can change MB_ICONINFORMATION around to something like
MB_ICONEXCLAMATION to change the icon in the message box.
I'm not sure if this will work on the PPC, as it uses a speaker beep and includes some files that I don't know about and I think are only for Windows. But there's a simple program in Windows.Last modification: Moose Master - 06/11/01 at 13:18:07
The funny thing about the book is that the publisher rated it as "Beginner/Advanced" on the back cover.  

What's that supposed to mean?  It's for both, Beginners and Advanced programmers?  It contains both Beginning and Advanced information?  It contains Beginner information, but explained in a confusing manner with errors in the accompanying source code?

This is the first and last book I'm going to buy that has anything to do with Andre Lamothe.  He can strut around in his Blade outfit and peddle his books elsewhere.  Now if Mike Abrash were to write a book on PDA programming...

Michael Abrash is the man. I have "Graphics Programming Black Book: special edition" and it contains stuff that'll blow your mind.

He chronicles some of the solutions they used in developing the Quake engine, along with a ton of optimising techniques.

But yeah, too bad Abrash hasn't written anything for WinCE.
Moose or Chuck · 12 Jun 2001, 08:14 UTC
I don't have the PocketPC Game Programming book, but it was only co-written by LaMothe, so that may be it. I don't know, though. Maybe he's just gone downhill since the days of DOS game programming.
jcdenton999 · 12 Jun 2001, 08:17 UTC
NICE
THANKS, THANKS, THANX
really nice to post something in the afternoon and then read such a lot responses!
Is "Complete Idiots ..." that series of books with that comic teacher on the front?
Guess it would be good to start something in my home language, and i remember those books at the stores!
About that good ol' "Hello World"
Who the hell came up with this? that seems to be the beginning of every tutorial for every developer tool!

About "Pocket PC Game Programming":
OK, I have to admit that i only wanna learn all this for maybe creating an own game. but i'm not very optimistic with this book! Everything that starts like "Pocket 3D Games" or "CE Games" turns out to be crap! (I already bought a book called "3D PCGames") but they wont really help later!

I'm gonna trust in what MooseMaster postet!
so
thx a lot dudes

While were are on this discussion, Anybody have any suggestions or weblinks to some useful info on the PPC GAPI. I'd like to use it more, but always run into snags with blasting 8-bit bitmaps onto 16-bit displays and 24-bit bitmaps onto the same. Aaah, reminds me of when I first learned DirectX. Except now...do I really understand DX or am I fooling myself. heh.

zzzzzzz
PsychoStorm · 19 Jun 2001, 12:38 UTC
I purchased the "Zen of Code Optimization" by Abrash.  Some very, very good stuff in there that I'd never think of by myself.  I bought the Lamothe book just to give me a head start on GAPI, although Digby says there are GAPI mistakes in there and so now I'm a little leary of it.  Still, I'm sure there's something useful in there that can save me time down the road.
Moose or Chuck · 19 Jun 2001, 15:22 UTC
www.gamedev.net has some pretty good articles, and a few pocketpc GAPI articles.
Have a look at this GAPI-How-To
I was just reading through "Pocket PC Game programming using the Windows CE Game API". Did anyone else notice the reference to pocketQuake?

Page 268 snippet:

Quake for Pocket PC?
Quake has also recently been ported to PocketPC, and from what I have seen so far, it looks awesome. The first port was targete for the iPAQ and the StrongARM processor, but additional builds will be forthcoming to support other PocketPCs.


I assume this is the "LaMothe book" you guys were discussng earlier- it is written by Jonathan S Harbour and edited by LaMothe. Is this a decent book or is it completely worthless?

Anyway, just thought I'd mention the reference to PQ (it doesn't say anything about Dan East unfortunaely :( )
Randall,

Yes, that's the book I have and the one which spurned my previous comments.  I too saw the blurb about PocketQuake.  Did he even mention the website?  I don't remember.

It's not a horrible book but it's written for someone who has done little if any Windows programming.  It's another in a long list of books lately that fill a majority of the pages by documenting their own class library then teaching you how to use it.  All told the useful info in the book could have been presented in about 50 pages, including sample code.

There are mistakes in some of the screen addressing routines.  He didn't even mention native landscape displays (a la iPaq) and how to optimize your blit routines for such.  I was disappointed he didn't go into the waveOut audio APIs, which is the only thing you use if you want to dynamically mix multi-channel audio.

I don't know what Lamothe's contribution was to the book.  Probably lines like (I'm paraphrasing here)

"This routine certainly isn't optimal by any means but I'll leave that up to you!"

Why do you think people are buying your book, you sap?  How about a list of hints on how to optimize?  You don't have to actually provide source code (although you do for almost everything else).

But the most annoying thing about the book was finding far too many exclamation marks littering the text.  Is is just me, or does anyone else find a plethora of exclamation marks in technical documentation out of place?  Perhaps that was Lamothe's contribution?  I could just see him showing up for an editorial review wearing that dork-a-matic Blade-wannabe outfit complaining about there not being enough exclamation marks.

How much money do these clowns get for writing a book anyway?


No, there was no reference to PocketMatrix or the pocketQuake webpages. :(

I was fairly impressed that the book seemed up-to-date... it showed screenshots of Metallion and a gazillion other JimmySoftware games. Even talked about the Doom ports (and I think Hexen/Herectic).

I'm more of a reference-book kind of guy, I want to have direct info at my fingertips with no extra bulllshit, no speculation and no jokes. Those how-to books like "C++ in 60 seconds" or "VB for Complete Blithering Morons" seem to just ramble on-and-on... similar to my typical postings here on PocketMatrix.

Although I do have to say that Michael Abrash's books are cool, even though he always adds side notes and goes off on some sort of story-telling spree to get his point across. Someone buy that guy a PocketPC so he'll start writing PPC books.

To me, stating in a book "This routine certainly isn't optimal by any means but I'll leave that up to you!" sounds like a cop out. Like he has no idea how to optimise it, and doesn't want to display the failed and futile attempts for the world to criticise.

Abrash is always good at showing you EXACTLY how to optimise code. Hell, he'll do it for you.

Exclamation marks? I'm thinking that they get paid per "!". Oviously that must be a VERY important comment and worthy of extra payment.  




PsychoStorm · 24 Jun 2001, 22:05 UTC
I was reading through the book some more, and I have to agree with Digby on all counts.  No mention of the native addressing for the IPAQ, and the space he spends on some hare-brained "priority wave playing" scheme could have covered waveOutAPI two times over.

Abrash is cool - he'll start with "One time, Me and my girlfriend were making out, hot and heavy, when suddenly her Dad came out with a gun and started chasing me and firing at me... this is very much like rapid search optimization where the fastest way to do it is to... yadda yadda yadda"

I am in the process of debugging a mixing waveOutAPI right now.  Once I get this thing to sing for me, I'll share for everyone.
LOL... actually that is a story DIRECTLY out of one of Abrash's books.
Excellent, Richard.
That would save me much trouble and time if I could learn how to really work the waveOut's from someone. It'd be nice to put some music in with the SFX in my latest works.