This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Compiling PF Game for Desktop...


Compiling PF Game for Desktop...

Postby Ohayden » Jun 3, 2004 @ 8:51pm

User avatar
Ohayden
pm Member
 
Posts: 59
Joined: Jun 30, 2003 @ 2:43pm
Location: Somewhere in the matrix...


Postby GeoffSulcer » Jun 3, 2004 @ 9:17pm

User avatar
GeoffSulcer
pm Member
 
Posts: 51
Joined: Nov 11, 2001 @ 9:33am
Location: Stow, OH


Postby adde » Jun 3, 2004 @ 10:28pm

"PF uses imgdcmp.dll (sp?) to load images. This dll is different on a desktop then on the Pocket PC. "
Not entirely correct. The desktop doesn't even use imgdcmp.dll.

"On the desktop it only loads .bmp and .dib IIRC, but on Pocket PC it can also load .jpg and .png"
Again not entirely correct.. this is from the image.h in pocketfrog root dir:

"The PocketPC and the desktop PC versions of this function are implemented differently. On PocketPC, we use the "imgdecmp.dll" decompression library to load different file formats without having to deal with legal issues such as GIF decompression.

On the desktop, we use the OleLoadPicture() function to load image files.
This give us access to a similar set of image formats.

The following formats are supported:
PocketPC: .BMP, .GIF, .JPG, .PNG and .XBM
Desktop: .BMP, .GIF, .JPG, .WMF and .ICO"


So you see, using either BMP, GIF or JPG you can have the same code and resources running on the desktop as on your pda. PNG files are only supported on the PDA.

One thing to keep in mind if you work with external resources (i.e. files) is that the paths will be different for the PDA and the desktop so you have to do some #ifdef _WIN32_WCE #else #endif here. Also, WinCE uses widechar/unicode and desktops doesn't (hmm.. perhaps this has changed since XP.. havn't used PF on XP (yet)).

What could the error be then? Hard to say really without more info. It does sound like a MT race condition error (i.e. two threads are trying to write to the same area at the same time) but then PF 0.6.0 is not running multiple threads. What version of PF are you using?. If you are running multiple threads, then you must link to the MT libs on your desktop. There is no distinction between ST and MT (single/multi thread) libraries on WinCE so that's why you won't be able to produce the same errors on your PDA.

What you should do is try to compile and run one of the PF samples on your desktop since they should work on your desktop as well, and they all do the Blit. (I seem to recall they have a project file for VC6). If that works then look at how it links all the stuff together and do your stuff exactly like that.

Hope this info helps. If not there are several threads in this forum that handles the issues of getting your application running on the desktop. I seem to recall I helped Conan with this about a year ago.
User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby Ohayden » Jun 4, 2004 @ 12:13am

Last edited by Ohayden on Jun 4, 2004 @ 12:49am, edited 1 time in total.
User avatar
Ohayden
pm Member
 
Posts: 59
Joined: Jun 30, 2003 @ 2:43pm
Location: Somewhere in the matrix...


Postby Ohayden » Jun 4, 2004 @ 12:49am

User avatar
Ohayden
pm Member
 
Posts: 59
Joined: Jun 30, 2003 @ 2:43pm
Location: Somewhere in the matrix...


Postby adde » Jun 4, 2004 @ 3:12am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby GeoffSulcer » Jun 4, 2004 @ 3:02pm

<a href="http://gsulcer.blogspot.com">Rampant Futurism Blog</a>
User avatar
GeoffSulcer
pm Member
 
Posts: 51
Joined: Nov 11, 2001 @ 9:33am
Location: Stow, OH


Postby adde » Jun 4, 2004 @ 4:19pm

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby fzammetti » Jun 4, 2004 @ 5:14pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


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