On Sat, 2007-11-03 at 18:32 +0100, Jacek M. Holeczek wrote:
> for the last few days, I've been trying to port a nice utility to
> mignw32ce. In principle I think I am ready to try it ... unfortunately,
> the regsrv on my WinCE PNA says "GetLastError returns c1". I have no
> precise data on what this error means, but I suspect it is
> "ERROR_BAD_EXE_FORMAT", which in turn means that it cannot link to system
> libraries. I might have found the reason ...

I'm not sure exactly what you're telling us here. I assume that your
application fails when using the DLL ?

Have you tried the example in test/shared ? I've attached it so you
don't have to grab it from SVN. (and it includes a patch so it compiles
with mingw32ce too)

The example is very small, you do need to be sure that the DLL is in a
place where Windows will find it for you.

        Danny

dannypc: {30} cd shared/
dannypc: {31} l
total 5
-rw-rw-r-- 1 danny backx 947 Sep 17 22:27 demodll.c
-rw-rw-r-- 1 danny backx  29 Sep 17 22:27 demodll.def
-rw-rw-r-- 1 danny backx 699 Sep 17 22:27 Makefile
-rw-rw-r-- 1 danny backx  96 Sep 17 22:27 testdll.c
-rw-rw-r-- 1 danny backx 174 Sep 17 22:27 usedemo.c
dannypc: {32} make
arm-wince-cegcc-gcc -g --shared -o demodll.dll demodll.c
arm-wince-cegcc-dlltool -d demodll.def -l libdemodll.a
arm-wince-cegcc-gcc -g -o usedemo.exe usedemo.c -L. -ldemodll
Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
dannypc: {33} l
total 46
-rw-rw-r-- 1 danny backx   947 Sep 17 22:27 demodll.c
-rw-rw-r-- 1 danny backx    29 Sep 17 22:27 demodll.def
-rwxrwxr-x 1 danny backx 19282 Nov  4 10:23 demodll.dll
-rw-rw-r-- 1 danny backx  2096 Nov  4 10:23 libdemodll.a
-rw-rw-r-- 1 danny backx   699 Sep 17 22:27 Makefile
-rw-rw-r-- 1 danny backx    96 Sep 17 22:27 testdll.c
-rw-rw-r-- 1 danny backx   174 Sep 17 22:27 usedemo.c
-rwxrwxr-x 1 danny backx 16708 Nov  4 10:23 usedemo.exe
dannypc: {34} 


> The objdump shows two DLL Names in the Import Tables: "AYGSHELL" and
> "COREDLL" ... note ... NO ".DLL" file name extensions! Such libraries do
> not exist, of course!
> Here is how I create my dll:
>       arm-wince-mingw32ce-g++ -c -o ids.armobj ids.cpp
>       arm-wince-mingw32ce-g++ -c -o startkey.armobj startkey.cpp
>       arm-wince-mingw32ce-g++ -shared -o eurokbd.dll eurokbd.armobj 
> ids.armobj eurokbd.def -laygshell -luuid
> 
> Could you, please, tell me how to get it working?
> Thanks in advance,
> Best regards,
> Jacek.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Cegcc-devel mailing list
> Cegcc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: shared.tar.gz
Description: application/compressed-tar

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to