首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

VB 怎么转成 C++ 代码

2013-01-17 
VB 如何转成 C++ 代码下面代码如何转换成C++代码:Sub test()Application.SpellingOptions.DictLang msoL

VB 如何转成 C++ 代码
下面代码如何转换成C++代码:

Sub test()
Application.SpellingOptions.DictLang = msoLanguageIDKorean
Dim bResultCell As Boolean
bResultCell = Application.CheckSpelling("hello")
End Sub


[解决办法]

引用:
下面代码如何转换成C++代码:

Sub test()
Application.SpellingOptions.DictLang = msoLanguageIDKorean
Dim bResultCell As Boolean
bResultCell = Application.CheckSpelling("hello")
End Sub



Sub test()
 Application.SpellingOptions.DictLang = msoLanguageIDKorean
 Dim bResultCell As Boolean
 bResultCell = Application.CheckSpelling("hello")
 End Sub
 

估计是word 的vba代码。

需要你加载word的类型库,产生包装类

Application---------------_application

CheckSpelling----------CheckSpelling(Word, CustomDictionary, IgnoreUppercase, MainDictionary, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10)

表达式   必选。一个代表 Application 对象的变量。


检查字符串的拼写错误。



SpellingOptions 这个没查到。

热点排行