Platform SDK: COM |
Visual C++ provides several tools to assist you in adding COM objects to your project. You can add an ActiveX control to your project, use the MFC Class Wizard, or run the MIDL compiler on an IDL file.
If you are using a C++ development environment other than Visual C++, consult that product's documentation for information on COM conversion tools.
Once you have added the COM object's include or stub files to your project, your application can use the COM object's classes.
Visual C++ also provides the OLE-COM Object Viewer, which you can use to view compiled type library information. The object viewer presents the COM classes in C++ syntax.
For more information about using COM objects in Visual C++ projects, see the Visual C++ documentation.
The following topics describe issues you should consider when translating a COM object's syntax to C++ from Java or Visual Basic:
Note The MkTypLib command-line tool, Mktyplib.exe, is obsolete and has been replaced by the MIDL compiler, Midl.exe.