Home » Renegade Discussions » Mod Forum » Beta Release, RenRevolver
Beta Release, RenRevolver [message #120272] |
Thu, 14 October 2004 21:57 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma:
|
General (3 Stars) |
|
|
Sanada78 |
My Ren install is now fooked. I can't even install it again because the same problem with the text not appearing is still there.
|
Sorry about that, but i dont think its possible with my installation. All that below is every line of code. It doesnt really do anything that can cause that.
Private Type BrowseInfo
hWndOwner As Long
pIDLRoot As Long
pszDisplayName As Long
lpszTitle As Long
ulFlags As Long
lpfnCallback As Long
lParam As Long
iImage As Long
End Type
Const BIF_RETURNONLYFSDIRS = 1
Const MAX_PATH = 260
Private Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal hMem As Long)
Private Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (ByVal lpString1 As String, ByVal lpString2 As String) As Long
Private Declare Function SHBrowseForFolder Lib "shell32" (lpbi As BrowseInfo) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32" (ByVal pidList As Long, ByVal lpBuffer As String) As Long
Private Sub Command1_Click()
If Command1.Caption = "Start Install" Then
Timer1.Enabled = True
Command1.Caption = "Stop"
Else
Timer1.Enabled = False
End If
End Sub
Private Sub Form_Load()
MsgBox "Please Select your Renegade Folder"
Dim iNull As Integer, lpIDList As Long, lResult As Long
Dim sPath As String, udtBI As BrowseInfo
With udtBI
'Set the owner window
.hWndOwner = Me.hWnd
'lstrcat appends the two strings and returns the memory address
.lpszTitle = lstrcat("C:\", "")
'Return only if the user selected a directory
.ulFlags = BIF_RETURNONLYFSDIRS
End With
'Show the 'Browse for folder' dialog
lpIDList = SHBrowseForFolder(udtBI)
If lpIDList Then
sPath = String$(MAX_PATH, 0)
'Get the path from the IDList
SHGetPathFromIDList lpIDList, sPath
'free the block of memory
CoTaskMemFree lpIDList
iNull = InStr(sPath, vbNullChar)
If iNull Then
sPath = Left$(sPath, iNull - 1)
End If
End If
File1.Path = sPath
Text3 = sPath
On Error Resume Next
MkDir (Text3 & "\RenRevolver")
End Sub
Private Sub Timer1_Timer()
On Error Resume Next
File1.ListIndex = Text2
Text1 = File1.ListCount - 1
Text2 = File1.ListIndex
If Text1 = Text2 Then
MsgBox "Install Complete"
End
Else
Text2 = Val(Text2) + 1
FileCopy Text3 & "\" & File1, Text3 & "\RenRevolver\" & File1
End If
End Sub
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: Doitle on Wed, 13 October 2004 13:29
|
|
|
Beta Release, RenRevolver
By: Doitle on Wed, 13 October 2004 13:34
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: Slash0x on Wed, 13 October 2004 16:49
|
|
|
Beta Release, RenRevolver
By: glyde51 on Wed, 13 October 2004 16:50
|
|
|
Beta Release, RenRevolver
By: Doitle on Wed, 13 October 2004 17:27
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: Doitle on Thu, 14 October 2004 13:43
|
|
|
Beta Release, RenRevolver
By: WNxCABAL on Thu, 14 October 2004 14:36
|
|
|
Beta Release, RenRevolver
By: Sanada78 on Thu, 14 October 2004 16:39
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: Ferhago on Fri, 15 October 2004 03:24
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: WNxCABAL on Fri, 15 October 2004 05:00
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: Sanada78 on Fri, 15 October 2004 10:05
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: htmlgod on Fri, 15 October 2004 14:43
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: htmlgod on Sat, 16 October 2004 08:24
|
|
|
Beta Release, RenRevolver
|
|
|
Beta Release, RenRevolver
By: icedog90 on Sat, 16 October 2004 12:48
|
|
|
Beta Release, RenRevolver
|
Goto Forum:
Current Time: Wed Nov 20 05:38:49 MST 2024
Total time taken to generate the page: 0.00877 seconds
|