PocketMatrix forums

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

PocketFrog vs eVC++ 4.0

Hi !
I have some problem with PocketFrog-powered application compiled under eVC++ 4.0.
When i execute my game - programm display message "Window creation failed".
I know, that problem in Game::Init, but i don't understand why it can't create window :(

P.S. Always i had compile my application under eVC++ 3.0 - application works whithout problems.
PsychoChris · 11 Mar 2008, 10:51 UTC
Did you modify the PocketFrog sources? If yes, what are those modifications? Try inserting GetLastError() right after the window creation. That error code returned could give you a hint on what went wrong.

Regards,
Chris
PsychoChris wrote:Did you modify the PocketFrog sources? If yes, what are those modifications? Try inserting GetLastError() right after the window creation. That error code returned could give you a hint on what went wrong.

Program with changed sources was correctly build under eVC++ 3.0 and run without any problem.

Yesterday I rebuild PocketFrog under eVC++ 4.0, and rebuild my game – game has executed, but don’t “feel” any touch and/or key press...
I found the way to fix this problem. This problem also have place to be on VS2005. It’s information can help other people.
When you convert your project from eVC 3.0 be sure, that in options of new compiler (eVC 4.0 or VS2005) has directive like _WIN32_WCE_PSPC.

(harder way)
1. Insert to options of PocketFrog_lib project your own directive (for example - _PPC_BUILD_) and modify PocketFrog\sources\defs.h like this :

Code:

#ifndef POCKETFROG_DEFS_H
#define POCKETFROG_DEFS_H

#include <windows.h>
#include <tchar.h>
#include <atlbase.h>

#if !defined(_WIN32_WCE)
#define FROG_PC
#elif defined(_PPC_BUILD_) //Here your directive
#define FROG_PPC
#endif


After it rebuild PocketFrog.lib and set also to YOUR project options your directive.
[/code]