Using COM Object in C++ [duplicate]
Possible Duplicate:
Accessing COM interface from C or C++ i开发者_Go百科n Windows environment
Hi, I have C# COM obejct (registered by regenv) and i'd like to use it in C++. How can i do that? Thanks
COM is a very broad topic, with it own terminology, pitfalls, quirks and idioms. It might do no good to throw out a few lines of code that show you how to consume a COM object created via COM Interop here, especially since COM Interop is a magnitude better at hiding those peculiarities from you than using COM in C++ is.
Instead, I'd suggest you read the (infamous) book by Don Box about COM, called "Essential COM". Excerpts of it are available at Google Books, so you can get an idea of it's contents before possibly buying a copy.
精彩评论