Click to See Complete Forum and Search --> : MissingMethodException on CoInitializeEx


laserbeams
April 28th, 2004, 11:35 PM
I am building a pocketPC application, and I also created a C++ class. The appplication will create an object of that C++ class and use a method in the class. In the class, I have a method called Testing(), and inside that, I am trying to call ::CoInitializeEx(NULL,COINIT_APARTMENTTHREADED) When I build the solution, I didn't get any compilation error. However, at runtime, when
the pokcetPC is tyring to call that Testing() method, it gives me a
MissingMethodException. I think it can't find the dll it needs.

Actually, in order to use the ::CoInitializeEx(), I need the Ole32.lib as the link lib, I already added it to the linker input in the properties. What else do I have to do? Do I need to add anything to the Reference? Do you have any idea what is happening? Thank you very much.