PocketMatrix forums

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

Error C2039 on building the "Creating a new project&quo

Hello,
I tried to build (for pocket PC) the "Creating a new project" tutorial on the "GapiDraw 3.50 Introduction" part of the doc directory of GapiDraw.
I did everything as on the tutorial but i steel have an error C2039 :evil:
I don't find why...Can you please help me ?
Thanks,
Titou.

PS: i use "eMbedded Visual C++ 4.0" and GapiDraw 3.51 eval.

There's the error by eVC :

Code:
Deleting intermediate files and output files for project 'test - Win32 (WCE ARMV4) Debug'.
--------------------Configuration: test - Win32 (WCE ARMV4) Debug--------------------
Compiling resources...
Compiling...
test.cpp
c:\source\test\common\test.cpp(64) : error C2039: 'dwTargetFPS' : is not a member of '_GDAPPCONFIG'
c:\source\gapidraw\include\win32\gapiapplication.h(42) : see declaration of '_GDAPPCONFIG'
GapiApplication.cpp
Error executing clarm.exe.

test.exe - 1 error(s), 0 warning(s)
I did test with another computer with "visual emmbedded c++ 3.0" with the windows 2002 SDK and steel with gapidraw 3.51 eval.
I have exactly the same error.
But i noticed that i don't have the same project type as on the tutorial: i must choose "WCE Pocket PC Application" but i don't have it :?: :?: So i choised "WCE Pocket PC 2002 Application" (on this computer but did with the 2003 on my first computer).
Can the problem come from here ?
If yes,How can i have the "WCE Pocket PC Application" choise ?
Thanks if you can help me because i really want to make games with gapidraw and at this point (after a week),i steel can't... :cry:
Titou.
Hello,
i was finally abbled to build it!!! :D

I will explain how for johan can change it in the next version.

in the version 3.5* , the line
Code:
DWORD dwTargetFPS;
is lost in the gapiapplication.h file.I found it on the 3.01 !!!

So please change it for the nexts...

I just added like that :

Code:
// Structures ________________________________________________________________

typedef struct _GDAPPCONFIG
{
HINSTANCE hInstance; // Application instance [ mandatory ]
const _TCHAR* pAppTitle; // Application title [ mandatory ]
DWORD dwTargetFPS; // Target number of frame updates / second [ mandatory ]
DWORD dwMaxFPS; // Cap the number of frame updates each second [ mandatory ]
DWORD dwDisplayFlags; // Flags sent to OpenDisplay


Thanks to me 8)
:D
dwTargetFPS was replaced by dwMaxFPS. Same functionality, just a different member name.