VB 如何转成 C++ 代码
下面代码如何转换成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 这个没查到。