Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

PocketFrog vs eVC++ 4.0


PocketFrog vs eVC++ 4.0

Postby maskin » Mar 11, 2008 @ 9:11am

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.
maskin
pm Member
 
Posts: 32
Joined: Dec 8, 2006 @ 10:06am


Postby PsychoChris » Mar 11, 2008 @ 11:51am

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
pm Member
 
Posts: 45
Joined: Jul 17, 2006 @ 11:47pm


Postby maskin » Mar 12, 2008 @ 9:22am

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...
maskin
pm Member
 
Posts: 32
Joined: Dec 8, 2006 @ 10:06am


Postby maskin » Mar 19, 2008 @ 10:07am

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: Select all









10 
11 
12 
#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
12 lines; 12 keywds; 0 nums; 14 ops; 0 strs; 1 coms    Syntactic Coloring v0.4 - Dan East  


After it rebuild PocketFrog.lib and set also to YOUR project options your directive.
[/code]
maskin
pm Member
 
Posts: 32
Joined: Dec 8, 2006 @ 10:06am


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron