Good news!

Jerome Decoodt found a workaround to get applications working on Windows
Mobile 6.1.
It seems that you can ask system not to load DLL in high memory : 

Danny could please update FAQ and add something like :

19. I get an "Invalid Pocket PC application" when I try to run my program
on Windows Mobile 6.1

There is currently an incompatibility between PE loader and DLL generated
by cegcc.
You can add a DWORD registry entry in
[HKEY_LOCAL_MACHINE\System\Loader\LoadModuleLow] with key=YourDllName.dll
and value=1

[HKEY_LOCAL_MACHINE\System\Loader\LoadModuleLow]
"YourDllName.dll"=dword:1




On Thu, 28 Aug 2008 10:03:50 +0200, Jérôme Decoodt
<[EMAIL PROTECTED]> wrote:
> Hello,
> 
>> I have attached an bz2 archive with sources you provided and two
>> "makefile", one for cegcc and the other one for Visual 2005.
>> Could you please check we are using same compilation flags.
> 
> Indeed, I was compiling this way :
> 
> /opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/cc1 -quiet
> -D__COREDLL__ -D__MINGW32__ -D__MINGW32CE__ -D__CEGCC_VERSION__
> -idirafter ../include/w32api -idirafter ../../include/w32api testDLL.c
> -quiet -dumpbase testDLL.c -auxbase testDLL -version -o testDLL.s
> 
>
/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/bin/as
> -o testDLL.o testDLL.s
> 
> /opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/collect2 --shared
> -Bdynamic -e DllMain -o testDLL.dll testDLL.o -lcoredll
> 
> These commands come from those printed with arm-wince-mingw32ce-gcc -v
> -shared -o testDLL.dll testDLL.c. I just simplified a lot the collect2
> command to use DllMain as entry point to be sure it always return TRUE.
> 
> Furthermore, I'm compiling with mingw32ce instead of cegcc. BTW, I
> tested your binaries and they behave as mine : visuals display "DLL OK"
> while cegccs display "testDLLexe.exe is not a valid Pocket PC
> application" (not because testDLL.dll was larger than 64kB (-O3 reduced
> a lot the code) but because cegcc.dll is 2.6MB).
> 
> Thanks for your help,
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to