谁能把vb语言翻译成VC呢
home3163
home3163 Lv.2
2007年01月12日 19:30:32
只看楼主

Public Function Connect_ACAD() As Boolean Set ACADapp = CreateObject("AutoCad.application") Select Case VarType(ACADapp) Case vbEmpty Or vbNull Or vbError Connect_ACAD = False Case vbObject Set ACADdoc = ACADapp.Documents.Add()

Public Function Connect_ACAD() As Boolean
Set ACADapp = CreateObject("AutoCad.application")
Select Case VarType(ACADapp)
Case vbEmpty Or vbNull Or vbError
Connect_ACAD = False
Case vbObject
Set ACADdoc = ACADapp.Documents.Add()
If VarType(ACADdoc) = vbObject Then
Connect_ACAD = True
Else
Connect_ACAD = False
End If
Case Else
Connect_ACAD = False
End Select
End Function
谁能把上面这段vb语言翻译成VC呢?急急急急
免费打赏

相关推荐

APP内打开