Duplicate - Sorry - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Duplicate - Sorry

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?

Sign In or Register to comment.