Exp=a
@end
                                                       
'Ini_3:
'1ûȨŵĸ߰λ
'2ûȨŵĵͰλ
'ĿģʹȨŵķʽǷûԼļע,ڽйģעʱһҪʹô˺
Public Sub Ini_3(ByVal HKey As String,ByVal LKey As String)
KeyPath = Space$(260)
 LastError = 0 'ʼΪ޴
 Dim result As Integer'
'δûǷ
If Len(HKey) < 1 Or Len(LKey) < 1 Then
    MsgBox "ȨŴעʧ"
    Exit Sub
End If
 result=FindPort_4("@f",@p,HKey,LKey,KeyPath)
Dim nPos As Long
nPos = InStr(KeyPath, vbNullChar)
If nPos > 0 Then
     KeyPath = Left$(KeyPath, nPos - 1)
End If
 If result<>0 Then
    If result = -201 Then
        MsgBox "ҲָļļļǷڳĿ¼¡ǿģʽ£ļǷVBڵĿ¼¡"
    Exit sub
    End If
    MsgBox "ڶӦûȨŴӦûȷȨš", vbOKOnly, "
 else
    result=E_EX_3(HKey,LKey,"@f","@f.lll",KeyPath)
    if result<>0 then
	MsgBox "עʧܡ"
    end if
 End If
End Sub
