Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Beta Release, RenRevolver
Beta Release, RenRevolver [message #120272] Thu, 14 October 2004 21:57 Go to previous messageGo to previous message
Oblivion165 is currently offline  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. Confused




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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: shoulder-launched weapons in renegade
Next Topic: C&C Reborn: Umagon's Sniper Rifle, GDI Machine Gun
Goto Forum:
  


Current Time: Wed Nov 20 05:38:49 MST 2024

Total time taken to generate the page: 0.00877 seconds