PocketMatrix forums

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

Compiling appwizard projects

I have just compiled my first, empty, wizard-made project for the framework, but to my disappointment the program exits before executing any of the code generated by the wizard.

All functions are as the wizard-makes them, and i'd expect that the following should make the program loop till something has been clicked:

if ( g_Api->Clicked() ) ChangeState ( GAME_STATE_GAMEOVER );
True, but often a click is in the buffer when you start the app on a PC.
Hmm.. that doesn't seem to be the bug! The appwizard-generated code doesn't even hit void MyGame::InitGameState() or the void MyGame::DoGameState().
A friend of mine got the following exceptions from his d3d8 sdk when running a class-wizard generated project:


First-chance exception in GameDebug.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Direct3D8: (INFO) :*********** NOT!! ALLOWING MODE X AND VGA MODES
I am downloading the Overloaded v0.98 and will check if there are incompatibilities, but at least with v0.97 it is working OK for me. The wizard will be updated anyways.

About the DX8, first-chance exceptions are normal to happen, don't worry with it. If you don't believe me, take a look at this screenshot (look at the bottom-right...):

http://www.voodooextreme.com/apache/sho ... imdose.jpg

8)
OK, I just downloaded v0.98 and I can't replicate your problem. The wizard worked directly over the v0.98, I didn't even recompile it (the wizard).

1) I downloaded the v0.98;
2) I compiled .\workspace\overloaded-dist.dsw;
3) I closed the workspace (library was built OK);
4) I started New-App-Overloaded_Wizard;
5) Selected the correct directory (immediately inside the framework root dir);
6) Compiled, ran, clicked, clicked, saw the test, OK.

I don't know what is happening in your case, sincerely. I would like to mention that the wizard is saving great time for me, as I start projects all the time, to test ideas. Hope it is useful for some of you as well. :)
The weird thing is that the examples supplied with the framework can compile and work fine, whereas the appwizard-generated code doesn't -- i really have no clue on this one :?: