Hello. I'm building a winCE library in eVC4SP4. The library contains a class that does not call any Win32 or MFC functions. However, when I link this lib to the winCE app that I'm building, it compiles fine, but I get a Win32 error 126 (module not found) when I try to run it in the device emulator. If I remove the class instantiation from the app, the program runs fine in the emulator. So I know that the problem is with my library, but I don't know what is wrong with it.
I did have to add __declspec(dllexport) to the class definition in the library. Without it, all of the class member functions were discarded by the linker. Seems kind of strange to me that I needed to do this (I built this library originally in winXP and I didn't need to add __declspec(dllexport) to use the library in an XP app). Why/how is the dll exporting different in CE?
I've also tried building the library linked with MFC, but that didn't help (I thought that maybe the "module not found" error was because the emulator is looking for a mfc dll).
Can someone help me out here? I don't know what else to do to debug the error 126 from the emulator?