Re: Illegal entry point combination in driver dll "SunPlus_WCE.dll" by Valter
Valter
Fri Apr 18 05:48:15 PDT 2008
ausher wrote in news:200841883811ausher@sina.com:
> I wrote an USB driver under Windows CE, I just wrote three
> functions, namely,USBDeviceAttach,USBInstallDriver, and
> USBUninstallDriver. I also wrote the DLLMain function as an entry.
>
> However,when I down it to Win CE, the following problem exists:
> Illegal entry point combination in driver dll "SunPlus_WCE.dll"
>
> I appreciate your suggestion
You got this error when you connect the USB peripheral to your CE
Device, I suppose. Is that right?
You exported those functions from a .cpp file using the declspec
keyword?
You can use dumpbin to check if they are exported with decorated
names, if this is the problem, you may include them in an extern "C"
block.
Symbols exported by C++ sources are "decorated" by the compiler to
support overloading. The OS uses undecorated names and so you need to
export them with "C" naming.
--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)