Private Declare Function RnaWizard Lib "rnaui.dll" (ByVal hWnd As Long, ByVal hInst As Long, ByVal lpszEntry As String, ByVal lFlag As Long) As Long
Private lhWnd As Long
Private lhInst As Long
Private Sub Command2_Click()
    On Error GoTo ErrorHandle
    Dim s As String
    If Option1 Then
        s = "/0"
    Else
        s = "/1"
    End If    Dim l As Long
    l = RnaWizard(lhWnd, lhInst, s, 1)
    If l Then
        MsgBox "错误: " & l, vbCritical
    End If
    Exit Sub
    
ErrorHandle:
    MsgBox Err.Description, vbCritical
End SubPrivate Sub Form_Load()
    On Error Resume Next
    lhWnd = hWnd
    lhInst = App.hInstance
End Sub