Thanks, Paul for your response.
The format variable just says,
Quote: "<bad ptr> CXX0030: Error: expression cannot be evaluated
"
When running the template from the original install location a dialog box pop ups talking about 'Inconsistent Line Endings'.
The full message is :
Quote: "
The line ending in the following file are not consistent. Do you want to normalize the line endings?
c:\Program Files\The Game Creators\AGK10823b\IDE\apps\template_windows\template.cpp
Line ending:
Windows(CR LF) this part is in a dropdown box
"
I chose Yes.
Next, I have to comment out some portions of code in the Core.cpp file because of compile errors. I always do this since the beginning of using AGK.
// delay the loading of these functions so Windows XP and Vista don't complain
Line 115: //int (__stdcall *CloseTouchInputHandleDelayed)( HTOUCHINPUT ) = 0;
Line 116: //int (__stdcall *GetTouchInputInfoDelayed)( HTOUCHINPUT, unsigned int, PTOUCHINPUT, int ) = 0;
void LoadDelayedFunctions()
{
// only checks once
static int first = 1;
if ( first == 1 )
{
first = 0;
HMODULE user32 = LoadLibrary( "USER32.dll" );
Line 127: //CloseTouchInputHandleDelayed = (int(__stdcall *)(HTOUCHINPUT)) GetProcAddress( user32, "CloseTouchInputHandle" );
Line 128: //GetTouchInputInfoDelayed = (int(__stdcall *)(HTOUCHINPUT, unsigned int, PTOUCHINPUT, int)) GetProcAddress( user32, "GetTouchInputInfo" );
RegisterTouchWindowDelay = (BOOL(__stdcall *)(HWND, ULONG)) GetProcAddress( user32, "RegisterTouchWindow" );
FreeLibrary( user32 );
}
}
...
Line 670: //if ( RegisterTouchWindowDelay ) RegisterTouchWindowDelay(hWnd,TWF_WANTPALM);
...after that it compiles but then I get the error message from vsprintf.c. This time I ran it from the install location and the format variable had something in it. I've attached a screenshot.
But when I ran the program a second time the format variable showed <Bad Ptr>.
Prove Your Worthiness
KG2Entertainment.com