PocketMatrix forums

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

Questions about a few programming things.

First off, I just started coding for the PocketPC. I was wondering what is the best way to load up a text or binary file? It seems fstream.h isnt in the PPC sdk.

Also Is there a better way to do input than in the "WndProc" function?

I know when I programmed directx stuff it was WAY faster to use direct input outside of that function.

While I'm at it, im not familiar with compiling for other processors. How can I do this? It gives me errors when I try to batch compile(says somthing about not being able to connect to my sh3 device) I just want the files not to run them!

Anyhow, Today I coded most of my game. I will probably upload it tommorow somewhere on my webpage.
Well, there are a few routes you can go. You can use CreateFile if you want to go the Windows route. Then you code will not be as portable to linux / unix, etc. You can use stdio, like fopen, fread, etc. That's what I tend to do.

As far as compiling, I don't do batch builds. I guess I'm too lazy or busy to set it up. I just select the build target and hit F7. I do have all my installers batched up, so I can build all the CABs and installers by launching a shortcut and bat file.

Dan East