Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

laserbeams

MissingMethodException on ConinitializeEX

This topic is 5263 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
I looked in the help....

Header: Declared in objbase.h.
Library: Use ole32.lib.

are you linking to the above lib?

Share this post


Link to post
Share on other sites
I think I did. I went to the properties->linker->input->Additional Dependencies to add the Ole32.lib already. That''s what I have there.

nochkclr.obj mscoree.lib Ole32.lib Uuid.lib

I am using VS.NET 2003. Actually, Do I have to install anything else besides VS.NET in order to use that?

Ricky

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!