PocketMatrix forums

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

Moved to 0.8.1 but I cannot be using the correct sources

What settings should I need to pick up the 0.8.1 files
in tools / options / directories ?

I get lots of these
:\Windows CE Tools\frog\PocketFrog_0_8_1\PocketFrog\source\display.h(19): Could not find the file PocketHAL/display.h.

Linking...
treker.obj : error LNK2019: unresolved external symbol "protected: long __cdecl Frog::Game::OnPaint(unsigned int,unsigned int,long,int &)" (?OnPaint@Game@Frog@@IAAJIIJAAH@Z) referenced in function "public: virtual int __cdecl Frog::Game::ProcessWind
owMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@Game@Frog@@UAAHPAUHWND__@@IIJAAJK@Z)
treker.obj : error LNK2019: unresolved external symbol "protected: long __cdecl Frog::Game::OnKillFocus(unsigned int,unsigned int,long,int &)" (?OnKillFocus@Game@Frog@@IAAJIIJAAH@Z) referenced in function "public: virtual int __cdecl Frog::Game::Pro



I found when trying to solve my suspend/focus that I did not seem to be looking at the correct sources. Maybe I have not even been using the 0.7 PF sources
Say you installed in c:\dev\PocketFrog.

Then you need to add "C:\dev\PocketFrog" to your #include path. You will need to replace "#include <PocketFrog.h>" in your code with "#include <PocketFrog/PocketFrog.h>". This is by design.

For the libs, you need to add "c:\dev\PocketFrog\lib".

That's it.
I have a similar problem. I'm trying to build "blit" sample which came with pfrog 0.8.1. Well, it build ok, but only if I use one of targets which was there already - x86 and arm. But I want to use x86EM! I like debugging using emulator. Why did you removed this target? :(.

So, well, i had to make PocketFrog_EMU_Debug.lib and add the target to blit sample too. I did this, and now it compiles, but I get linking errors :(.

..................
Linking...
blit.obj : error LNK2019: unresolved external symbol _SHDoneButton referenced in function "public: static long __stdcall ATL::CWindowImplBaseT<class ATL::CWindow,class ATL::CWinTraits<1442840576,0> >::WindowProc(struct HWND__ *,unsigned int,unsigned
int,long)" (?WindowProc@?$CWindowImplBaseT@VCWindow@ATL@@V?$CWinTraits@$0FGAAAAAA@$0A@@2@@ATL@@SGJPAUHWND__@@IIJ@Z)
PocketFrog_EMU_Debug.lib(game.obj) : error LNK2001: unresolved external symbol _SHDoneButton
PocketHAL_EMU.lib(clock.obj) : error LNK2019: unresolved external symbol __imp__GetTickCount referenced in function "unsigned int __cdecl PHAL::GetClock(void)" (?GetClock@PHAL@@YAIXZ)
PocketFrog_EMU_Debug.lib(game.obj) : error LNK2019: unresolved external symbol _SHFullScreen referenced in function "private: void __thiscall Frog::Game::ShowTaskbar(bool)" (?ShowTaskbar@Game@Frog@@AAEX_N@Z)
PocketFrog_EMU_Debug.lib(image.obj) : error LNK2019: unresolved external symbol _DecompressImageIndirect referenced in function "class Frog::Surface * __cdecl Frog::DecompressImage(unsigned __int8 const *,unsigned __int8 const *)" (?DecompressImage@
Frog@@YAPAVSurface@1@PB_E0@Z)
PocketHAL_EMU.lib(win32input.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey referenced in function "bool __cdecl PHAL::GetKeyList(struct PHAL::KeyList *,enum PHAL::Orientation)" (?GetKeyList@PHAL@@YA_NPAUKeyList@1@W4Orientation@
1@@Z)
PocketHAL_EMU.lib(win32input.obj) : error LNK2019: unresolved external symbol __imp__RegEnumKeyExW referenced in function "bool __cdecl PHAL::GetKeyList(struct PHAL::KeyList *,enum PHAL::Orientation)" (?GetKeyList@PHAL@@YA_NPAUKeyList@1@W4Orientatio
n@1@@Z)
PocketHAL_EMU.lib(win32input.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW referenced in function "bool __cdecl PHAL::GetKeyList(struct PHAL::KeyList *,enum PHAL::Orientation)" (?GetKeyList@PHAL@@YA_NPAUKeyList@1@W4Orientatio
n@1@@Z)
PocketHAL_EMU.lib(GDISurface.obj) : error LNK2019: unresolved external symbol _ReleaseDC referenced in function "private: __thiscall PHAL::GDISurface::GDISurface(unsigned int,unsigned int)" (??0GDISurface@PHAL@@AAE@II@Z)
..................
etc.

Whatever should I do? Upper sollution does not help as there already "#include <PocketFrog/PocketFrog.h>".

PS: I'm using EVC 3.0. Only 3.0 :). 4.0's emulator is slow and consumes too much RAM.
I removed the emulator configs mostly because it takes me literally hours to setup all these projects.

It seems your #include paths aren't set properly. The linker is complaining about missing stuff that was in PF 0.7 that isn't in 0.8. (ex: ATL). You are in effect #including stuff from 0.7 and trying to link with 0.8. That won't work.
Thierry wrote:I removed the emulator configs mostly because it takes me literally hours to setup all these projects.

You could at least add this to one project ;)

So now its takes days for us to setup them :). It's everlasting "fun", this trying to run sample projects again and again 8O.

Thierry wrote:
It seems your #include paths aren't set properly. The linker is complaining about missing stuff that was in PF 0.7 that isn't in 0.8. (ex: ATL). You are in effect #including stuff from 0.7 and trying to link with 0.8. That won't work.


This is impossible! I renamed dir with pocketfrog7 and put 8.1 instead.
jaguard wrote:This is impossible! I renamed dir with pocketfrog7 and put 8.1 instead.


This is quite possible, your simple *IS* trying to link with ATL and PF 0.8 doesn't have it. I suggest a clean all & rebuild all. You must still have objs compiled with PF 0.7.
Thierry":knyt46sp]

I'm not trying to link with ATL :). I don't know how to disable it. What you telling is what i did several times before posting here :). No use, i tried again and got nothing.
Well, after looking into blit.obj i noticed that both ARM and X86EM version(which i trying to run) are using ATL functions (for example, *ATL::_DialogSizeHelper::_ATL_DLGTEMPLATEEX), so I don't think the thing is in ATL.

Any more ideas? :(

Did you ever tried yourself compiling samples on EVC3.0' for X86EM?
jaguard wrote:Did you ever tried yourself compiling samples on EVC3.0' for X86EM?


Oh. Actually there is no PocketHAL library for the PPC 2000 emulator. But there is one for the PPC 2002 emulator.

So "X86EM" will never work. But "X86" will.
Thierry":ndkrqr03]

This is really bad :(. So I have two choises: either EVC4.0 or MSVC6.0?
jaguard wrote:This is really bad :(. So I have two choises: either EVC4.0 or MSVC6.0?


You can use EVC3 with the PPC 2002 emulator. You don't have to switch to EVC4 if you don't want to.

VC6 is definitely a better choice for development then EVC.
You can use EVC3 with the PPC 2002 emulator. You don't have to switch to EVC4 if you don't want to.
VC6 is definitely a better choice for development then EVC.


But how can I do it? I only can choose one target device "PocketPC Emulator", and it is PPC2000 emulator. How can I add PPC2002 emulator to EVC3.0?[/quote]
I agree with Thierry, VC6 is much much better for development however you do have to test on a real device often & deal with all the TCHAR stuff to make the projects compatible
Conan wrote:I agree with Thierry, VC6 is much much better for development however you do have to test on a real device often & deal with all the TCHAR stuff to make the projects compatible


I remember this conversation. Thierry also told then that emulator runs very slowly(which doesn't). :)

Anyway I have no idea why VC6 should be better than EVC. At least on emulator i can find a lot of PPC specific bugs. This VC6 programs runs too fast to count real FPS. PPC2000 emulator on my Pentium3-866 runs just a little faster than my real device so I can measure real fps easily.

PS: Still waiting for the answer on my previous question ;)
You need to download and install the PPC2002 SDK form Microsoft. It's somewhere on www.pocketpc.com