Platform SDK: COM |
To call a COM object from an application written in a programming language other than the one used to write the COM object, you must first translate the object's syntax to your programming language. This can be done using the following steps:
Microsoft developer products provide several tools to assist you in viewing and converting type libraries. For more information, see Type Library Viewers and Conversion Tools.
Once you can view the object's type library in your preferred programming language, you can compare its syntax to that in the SDK documentation for the object. If the object is documented in a programming language other than the one you are using, the data types and syntax may differ, but descriptions of parameters, return values, and the object's functionality should be the same.
Because each programming language defines concepts that may not have an equivalent in other languages, some of an object's functionality may work differently in another language, or not be available at all.
For example, the Visual Basic programming language does not recognize C++ unsigned data types, such as unsigned long. An application written in Visual Basic cannot use COM methods that accept or return unsigned data type variables.
The following topics describe how to translate and use COM objects in a variety of programming languages:
Note The following topics describe conversion tools and processes provided by Microsoft developer products. For instructions on how to program COM objects using development tools created by other companies, see those development tools' documentation.