NO

Author Topic: Pelles C 6.00.4 and WM2003SE  (Read 7001 times)

cfmspavia

  • Guest
Pelles C 6.00.4 and WM2003SE
« on: August 07, 2009, 02:12:54 PM »
I'm having big problems running applications built with PellesC 6 in WM2003. Even the simplest program, for example the Hello World samples provided, build without errors but do not run at all. Message says "'App' is not a valid Pocket PC application". Some programs works fine on WM 5 emulator.

Has WM2003 support been droped from version 6 or is there something wrong with my settings?

Thanks

Carlos

Moonglow

  • Guest
Re: Pelles C 6.00.4 and WM2003SE
« Reply #1 on: March 01, 2010, 12:34:20 PM »
i have same problem with Windows CE 5.0 .... but with Pelles C 5.x all ok...

Online AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Pelles C 6.00.4 and WM2003SE
« Reply #2 on: March 01, 2010, 03:05:19 PM »
I don't know which project settings you have.

But have you created a project for a Pocket PC and is your target for an ARM-processor?
best regards
 Alex ;)

Moonglow

  • Guest
Re: Pelles C 6.00.4 and WM2003SE
« Reply #3 on: March 02, 2010, 08:15:54 AM »
Yeap offcourse for arm... i use Pocket PC wizard...  same project in 5.x working fine... but in 6 not working... i think i need to analyze diference beetwen this two file's... ( i think problem in PE header )... i will post result here later...

Moonglow

  • Guest
Re: Pelles C 6.00.4 and WM2003SE
« Reply #4 on: March 04, 2010, 08:29:39 AM »
i found a problem...

my coredll.dll on WindowsCE 5.0 does not have CheckRemoteDebuggerPresent function.. so.. then pe loader try to load my application windows say to me "not valid wince application" becourse it does not find CheckRemoteDebuggerPresent function....

what u need to do:

declare your own CheckRemoteDebuggerPresent function... and have fun... now all working fine ( Pelles C 5.x runtime do not use this function... and this is reason why my application work's fine with it )

Code: [Select]
BOOL WINAPI CheckRemoteDebuggerPresent( HANDLE hProcess, PBOOL pbDebuggerPresent ){
if( pbDebuggerPresent != NULL )
*pbDebuggerPresent = FALSE;
return TRUE;
}

p.s: sorry for my bad english

pitter2206

  • Guest
Re: Pelles C 6.00.4 and WM2003SE
« Reply #5 on: March 17, 2010, 01:54:41 PM »
Hi Moonglow,

thank you very much for this work-arround.

I build little apps for Win CE 5.0 for GoPal-PNAs...
That was the reason, I didn´t switch to Pelle C6 yet, because I had the same problems as you....

I´ll give it a try  ;)