PocketMatrix forums

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

PocketFrog(7.0) PC Build

I'm currently(again) trying to make a PC build of my pocketfrog game. I've changed all wchar_t's ,wcslen and others unicode specific into their macros from char.h, and now I'm having only 5 five errors left(Wow! :)). Which seem to be with ATL.

Here they are:

Code:

o:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5720) : error C2065: 'DEBUG_NEW' : undeclared identifier
o:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5720) : error C2440: '=' : cannot convert from 'int' to 'struct ATL::_ATL_TERMFUNC_ELEM *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
o:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5720) : error C2146: syntax error : missing ';' before identifier '_ATL_TERMFUNC_ELEM'
o:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5720) : error C2275: '_ATL_TERMFUNC_ELEM' : illegal use of this type as an expression
o:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(110) : see declaration of '_ATL_TERMFUNC_ELEM'
D:\projects\evc3\PocketFrog\samples\hekkus\routines.cpp(60) : error C2664: 'fprintf' : cannot convert parameter 2 from 'unsigned short [2]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

the only one that looks obvious is the fprintf one but I don't know where Hekkus does this. I had none of these errors with ATL when I did the same stuff. Not much help I know.
Yes, I just missed the last error while removing unicode specifics. It's not hekkus, its just me building a project from hekkus :).

Btw, I've successfully compiled PC release, but it's not working, so I still need to build PC debug version to find out what's going on wrong. Well, I need PC debug anyway, so even if it worked.

I'm getting this errors only in debug, not release, maybe this might help?

PS: I forgot to mention, I'm using MSVC++ 6.0.
Wow! I did it! :). I've made a copy of release config and configured it as debug. And I finally remembered why I didn't want to use MSVC++! :). I can't use png.

I'm using pngs all the way, so it is the problem. I don't want to split graphics to png and jpgs for different platforms, and I can't use jpg all the time.. What do you guys do?

And now I'm going back to EVC and the great PPC2000 emulator.. :).
I ran into this problem a while back as well:

http://www.pocketmatrix.com/forums/view ... 795#217795

I need to move to one format that works on both the PDA and desktop... but I really do like the PNG format. Oh well, I guess I'll move to JPGs


Basically I ended up with your exact conclusion, and that's to move over to JPGs or GIFs. My latest game uses nothing but GIFs. Since there isn't any license issues with GIFs anymore, it makes it viable option. I still like PNG better, but hey at least I can compile on desktop and PPC using one set of graphics now.

Basically I ended up with your exact conclusion, and that's to move over to JPGs or GIFs. My latest game uses nothing but GIFs. Since there isn't any license issues with GIFs anymore, it makes it viable option. I still like PNG better, but hey at least I can compile on desktop and PPC using one set of graphics now.


No, GIF is not an option, it only supports 256 colors :(.
Sure but it's 256 colors per graphic. Our last game is simple and 256 colors per graphic was more than enough. Why can't you use JPG?
What most of us have done is to download zlib and libpng (http://www.libpng.org) and port it over to WindowsCE. You only have to port zlib over as libpng is already ported. It's just porting over all the file handling routines from stdlib file handling to windows file handling.

PocketPC doesn't support most of the stdlib.

I could post my ported versions if you're interested, but you'll also have to write your own file loaders using the libraries, which I haven't done for PocketHAL or PF yet (I was using GapiDraw for a long time).

I thought Theirry had added PNG support to the newest Beta of PHal. Maybe that was to be added to PocketFrog soon instead...

Also, why would using VC++ prevent you from being able to use a library for graphics loading? I've never had a problem getting any library I've ever tried to work with 6.0 or .Net