PocketMatrix forums

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

VS2005:Hekkus works fine

I have built the hekkus demo and deployed to my X51 but get an access violation. Won't have time till tomorrow to debug further but problem is either Hekkus or HAL. PF looks correct (or me of course as I always make mistakes:) )
not tested yet but got Hekkus to build.
I had to set the treat wchar_t as built-in to No (/Zc:wchar_t-) and rebuild PF project and my game.
Conan · 15 Nov 2005, 19:34 UTC — Testing PF - Hekkus and other samples
Only the Hekkus sample crashes on WM2005. I have built & deployed the Blit, Supersample, Alpha, Shader and Plasma samples and these all work fine.

It's hard to debug Hekkus as there's no debug version so I will pass all the info I have to the author Thomas and see if he is looking at VS2005 yet.
could you please post your findings here ?
Conan wrote:I have built & deployed the Blit, Supersample, Alpha, Shader and Plasma samples and these all work fine.


Hmmm your doing better than me. I have the plasma working but I can't get the Blit sample to work. Strangly enough it works fine for the X50, just not the X51.
to abiemann, yes I can post what I have learned but give me a day to play some more as at present my thoughts are pretty disorganised. I need some more debugging to understand what I'm seeing. It's hard when the tools are all different to know what's a real error and what's just setup.

Re: the Blit sample building, you have to set PF project and your sample project properties, C++, language wchar_t setting to 'No (/Zc:wchar_t-)'
then it will build. I came across this on the GapiDraw forum by the way so it pays to look around :)

update: I now have Hekkus linking and running with a sample playing WAVs. I just need a few minutes later today to add in music.
Problems were:-
a) getting it to link
b) working with sample code which was not correct.
Once I created a Hekkus sample from scratch it all worked.
update 2: Hekkus now working with Music as well.
The original issues were to do with a corrupt resource file :oops:
Conan · 16 Nov 2005, 22:35 UTC — Now on to debugging my own game
I had to sort out stack settings as VS2005 did not carry across from eVC for some reason.
Now my debugging leads to a crash the first time I draw one of my sprites. A simple blit of a graphic works but bliting the sprite's data falls over so on with the debugging.
What's the benefit to using VS2005 as opposed to EVC3/4? Will the exe still work on the older devices?
Anonymous wrote:What's the benefit to using VS2005 as opposed to EVC3/4? Will the exe still work on the older devices?


I wonder the same thing. EVC4 works for all devices and I don't see why one would want to go through all the troubles of upgrading.
Why VS2005 instead of eVC:-
1. The WM5 SDK is not available in the eVC4 tools. You can get the SDK unpacked by trickery & look at it without WM2005 but you can't use it to build.
2. I could not debug on WM5 using eVC4.
3. The whole environment is miles better once you get used to it especially the emulator which is a fully functional device.
4. Extras to play with like Direct3D (not sure if this exists in 2003?
5. VS2005 can build for the 2003 2nd ed devices

Honesty, I'm lazy, I would not have gone through a week of painful setups & re-learning if there was no need. I want to work with WM5 so here I am with VS2005

ALso I was advised by Kzinti to use VS2005 He wrote:-
Shouldn't you be using EVC4 or VS2005 with the Axim x51?
Does VS2005 allow you to use templates properly for your PPC apps?
Andy, I don't use templates. (never understood them or had them shown to me so I just code). Happy to build a sample for you at the weekend if that would assist.