MissingMethodException on ConinitializeEX
Hi,
I created a class. In the class, I created a method. In the method, I am trying to initialize the COM by calling ::CoInitializeEx(NULL,COINIT_APARTMENTTHREADED);
and then I created another test problem to test the class. When I build the project, I didn''t get any compilation error, but at run time, when the method that has the CoInitializedEx is called, it gives me a MissingMethodException. I think maybe it can not find the dll it needs. Am I right? Anyone has any idea?
Thanks a lot.
Ricky
I looked in the help....
Header: Declared in objbase.h.
Library: Use ole32.lib.
are you linking to the above lib?
Header: Declared in objbase.h.
Library: Use ole32.lib.
are you linking to the above lib?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement