Difference between revisions of "Zh/Documentation/DevGuide/ProUNO/Bridge/Mapping of String"
From Apache OpenOffice Wiki
< Zh | Documentation
(New page: {{Documentation/DevGuide/ProUNOTOC/Zh |ProUNO2c=block |ABridgeSvcMgr=block |ABridgeTM=block |ABridgeDM=block |ShowPrevNext=block |PrevPage=Zh/Documentation/DevGuide/ProUNO/Bridge/Mapping o...) |
m |
||
Line 8: | Line 8: | ||
|NextPage=Zh/Documentation/DevGuide/ProUNO/Bridge/Mapping of Interfaces and Structures | |NextPage=Zh/Documentation/DevGuide/ProUNO/Bridge/Mapping of Interfaces and Structures | ||
}} | }} | ||
− | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/ProUNO/Bridge/{{SUBPAGENAME}}}} | |
{{DISPLAYTITLE:字符串的映射}} | {{DISPLAYTITLE:字符串的映射}} | ||
Latest revision as of 03:07, 14 May 2009
字符串是编程语言中常见的一种数据结构。尽管字符串的概念是相同的,但实现及其创建过程却大不相同。例如,C++ 程序员可以选择一系列的字符串(例如,char*
、char[ ]
、wchar_t*
、wchar_t[ ]
、std::string
、CString
、BSTR
),而 JScript 程序员却只能使用一种字符串。要跨越语言使用 Automation,就必须使用一种所有语言都通用的字符串类型,该字符串类型具有相同的二进制表示法。此特殊字符串在 COM 中被声明为 BSTR
。语言不同,名称也可能不同。例如,在 C++ 中,存在 BSTR
类型;在 VB 中,该类型称为 String
;而在 JScript中,定义的每个字符串都是 BSTR
。如果使用的是本文档没有提到的可使用 Automation 的语言,请参阅介绍与 BSTR
等效类型的文档。
Content on this page is licensed under the Public Documentation License (PDL). |