Pelles C forum

C language => Pocket PC and Smartphone questions => Topic started by: cfmspavia on August 07, 2009, 02:12:54 pm

Title: Pelles C 6.00.4 and WM2003SE
Post by: cfmspavia 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
Title: Re: Pelles C 6.00.4 and WM2003SE
Post by: Moonglow 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...
Title: Re: Pelles C 6.00.4 and WM2003SE
Post by: AlexN 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?
Title: Re: Pelles C 6.00.4 and WM2003SE
Post by: Moonglow 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...
Title: Re: Pelles C 6.00.4 and WM2003SE
Post by: Moonglow 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
Title: Re: Pelles C 6.00.4 and WM2003SE
Post by: pitter2206 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  ;)