大网数据广告活动
Windows 系统接口

COM Language Translations

· 52CE 我爱测

Components created using the Component Object Model (COM) can be reused in applications written in any programming language that supports COM. This is because COM is a binary standard and, as such, is language-independent.

Components created using the Component Object Model (COM) can be reused in applications written in any programming language that supports COM. This is because COM is a binary standard and, as such, is language-independent.

COM objects are documented in the most relevant programming language or languages. For example, objects that are created for use in webpages are typically documented in the Microsoft Visual Basic development system, whereas system-level objects are typically documented in C++. However, because COM is language-neutral, you are not limited to using an object in the same language in which it is written or documented. For example, you can write an application in JScript that uses a control created in C++ and documented in Visual Basic.

The following topics discuss the differences between programming languages and describe how to translate COM object syntax from one language to another. Additional topics describe how to use COM objects in various scripting languages and environments.

The intent is to address the most common language translation issues that arise when using COM objects. The techniques and principles described apply to any programming or scripting language that supports COM. Because scripting languages and programming languages represent different programming paradigms, translation between scripting languages and programming languages is not addressed.

Related topics

Component Object Model (COM)

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。