PocketMatrix forums

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

Impossible to use emVC3.0 with a wm2003 hardware device?

I can't for the life of me get Embedded Visual C++ 3.0 to work with my Dell Axim X3 (WM2003). EVC4.0 works great. Activesync works fine.

But if I try and make a project in eVC3.0 for ppc2002 (which is what i need to target to make my app work on all 2002 and 2003 devices), I get the following error.

Image

I've done google searches, searches on here, and all I come across is tons of people with the same problem but no answer. :cry:

I've uninstalled everything, and reinstalled it in the microsoft recommended order (AS, tools 3.0, evc4.0, ppc2003 sdk), still no go. This is driving me nuts!

BTW, if I try to test connection on my PPC2002 device in the platform manager it fails saying "Unable to load device side components. Please check server configuration settings". If I try to test the connection on the PPC2003 device, it connects fine.

If I build a ppc2002 exe in devstudio and manually copy it over, it works fine...but obviously that means I cant debug and its a real pain in the ass getting the error every time I build.
jmX wrote:I can't for the life of me get Embedded Visual C++ 3.0 to work with my Dell Axim X3 (WM2003). EVC4.0 works great. Activesync works fine.

But if I try and make a project in eVC3.0 for ppc2002 (which is what i need to target to make my app work on all 2002 and 2003 devices), I get the following error.

Image

I've done google searches, searches on here, and all I come across is tons of people with the same problem but no answer. :cry:

I've uninstalled everything, and reinstalled it in the microsoft recommended order (AS, tools 3.0, evc4.0, ppc2003 sdk), still no go. This is driving me nuts!

BTW, if I try to test connection on my PPC2002 device in the platform manager it fails saying "Unable to load device side components. Please check server configuration settings". If I try to test the connection on the PPC2003 device, it connects fine.

If I build a ppc2002 exe in devstudio and manually copy it over, it works fine...but obviously that means I cant debug and its a real pain in the ass getting the error every time I build.


I think evc3 can't be used to debug apps in wm2003 devices,however you can remove that anoying error after build in tools->options->download tab
So how do people write apps these days? You cant make cross platform 2002/2003 apps in eVC4.0, and you can't buy 2002 devices anywhere aside from ebay. Surely there is a real way around this?
you can link applications to work on older wince devices too. just modify the link parameters, example from /subsystem:$(CESubsystem) to /subsystem:windowsce,3.00
but ofcoz you should use only functions/libraries available in wince3 too.

ps: i use evc4 for debugging/developing and evc3 for building release version (because of better arm output code) with the same project (which is wince2 compatible)
picard wrote:
ps: i use evc4 for debugging/developing and evc3 for building release version (because of better arm output code) with the same project (which is wince2 compatible)


How did you found those results ?

I've tested both compiler and only found that evc4 generate bigger code and not faster.

But I did not performed extensive benchmarking.
jmX wrote:You cant make cross platform 2002/2003 apps in eVC4.0


And why not? I do it all the time...
StephC wrote:How did you found those results ?

benchmarking pocketmvp and betaplayer.

StephC wrote:I've tested both compiler and only found that evc4 generate bigger code and not faster.

so you say evc4 was same speed? probably project dependent. for me evc4 is slower.

btw i'am changing to gcc (for the most important parts and for third party parts with gcc arm inline assembly optimizations). but i didn't try vs.net 2005 yet...
picard wrote:

btw i'am changing to gcc


Could you explain how do you setup the compilation chain to use gcc to generate wince exe ?
StephC wrote:Could you explain how do you setup the compilation chain to use gcc to generate wince exe ?

i didn't invest that much time in it yet. i don't have clib for cross gcc. i only use it for arm and the exe/dll is still linked by evc. i had to add some div and mod functions so gcc name convention could work. here is a minimal description about building the cross compiling enviroment ( http://svn.corecodec.org/betaplayer/trunk/crossgcc.txt ). maybe you will need addition cygwin packages i didn't try it on a "virgin" system yet. you can download betaplayer latest source to check how i call gcc from a evc3 project (subversion http://svn.corecodec.org/betaplayer/trunk/ )
What is the gcc code performance like in comparison to the evc compiler?

Any benchmarks already?
xPeterx wrote:What is the gcc code performance like in comparison to the evc compiler?
Any benchmarks already?

with betaplayer it's not much (3-4%). but in betaplayer the main decoding and blitting parts are in assembly and the c code is optimized for evc (checking the asm output). gcc makes little different code, but its more intelligent and developed by many people. example it will use 'mac' (multiplay and add) and post incremental indexing.
picard wrote:you can link applications to work on older wince devices too. just modify the link parameters, example from /subsystem:$(CESubsystem) to /subsystem:windowsce,3.00
but ofcoz you should use only functions/libraries available in wince3 too.

ps: i use evc4 for debugging/developing and evc3 for building release version (because of better arm output code) with the same project (which is wince2 compatible)


Cheers man, exactly the info I needed. Kinda odd there's not just an obvious target option in eVC 4 for this sorta thing. Anyway, the exe worked. Thanks again.