Hi, > 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)
Thanks very much for this test source (could you, please, consider moving it into the "examples", which are also present in the binary distributions?). Please find attached a modified version of "demodll.c". It solves a problem with windows "disappearing" in the "background". It also solves a problem which is probably related to "snprintf". I noticed that the line: snprintf(msg, sizeof(msg), "%s: last error = %i", func, e); when displayed in the MessageBoxW gives: open: last error = 3XX0X ("X" are just strange square boxes) It is sufficient to put any character after "%i" in the "format string", so I added a space character: snprintf(msg, sizeof(msg), "%s: last error = %i ", func, e); then the output is correct: open: last error = 3 Let me also say that, if I try to run this demo code compiled with arm-wince-cegcc (instead of arm-wince-mingw32ce), the usedemo.exe is executed, but then it stays in memory (together with the demodll.dll), and they cannot be killed/terminated (one needs to reboot the PNA in order to get rid of them). Finally, let me go back to the "problem" of missing ".dll" file name extensions. As demonstrated by the above "demodll", it does not matter for the Windows CE. However, do try to use the "Dependency Walker" with this small "demodll.dll" and with the "usedemo.exe". You will immediately notice that it will not be able to find "COREDLL" when trying to resolve the "DEMODLL" imports (because the file is called "COREDLL.dll"), and it will not be able to resolve any imports in the "usedemo.exe", because it tries to find "COREDLL" and "DEMODLL" files, while the files are called "COREDLL.dll" and "DEMODLL.dll". So, could you, please, consider changing the "standard dll naming convention" in cegcc/mingw32ce, so that there are always the ".dll" file name extensions added? (Well, the "Dependency Walker" is a really useful utility. It would be nice to be able to use it with cegcc/mingw32ce, too.) Best regards, Jacek.
demodll.c.gz
Description: demodll.c.gz
------------------------------------------------------------------------- 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