Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Existing
#2
Got it to work but its not registering the files if its not there >.>

Heres my sub load in main menu

Code:
Private Sub Form_Load()
If SystemFileExist("dx7vb.dll") And SystemFileExist("msstdfmt.dll") And SystemFileExist("MSCOMCTL.ocx") And SystemFileExist("MSWINSCK.ocx") And SystemFileExist("richtx32.ocx") And SystemFileExist("TABCTL3N.ocx") Then
Call MsgBox("Game loaded successfull!")
Else
DLL_Register App.Path & "\Extras\register-files\dx7vb.dll"
DLL_Register App.Path & "\Extsras\register-files\msstdfmt.dll"
DLL_Register App.Path & "\Extras\register-files\MSCOMCTL.ocx"
DLL_Register App.Path & "\Extras\register-files\MSWINSCK.ocx"
DLL_Register App.Path & "\Extras\register-files\richtx32.ocx"
DLL_Register App.Path & "\Extras\register-files\TABCTL3N.ocx"
Call MsgBox("The registery files have registered successfull!")
End If
End Sub

and heres my fixed function...

Code:
Function SystemFileExist(ByVal SystemFileName As String) As Boolean
    If Dir("C:" & "\WINDOWS\System32\" & SystemFileName) = "" Then
        SystemFileExist = False
    Else
        SystemFileExist = True
    End If
End Function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)