• Welcome to Valhalla Legends Archive.
 

Executing An EXE From DLL

Started by Clan CDH, December 01, 2006, 08:54 PM

Previous topic - Next topic

Clan CDH

How would I do this via a dll made in VB6???

l2k-Shadow

ok? What do you mean?

this dll would have to be loaded into another vb6 program (since vb6 are ActiveX dlls) and then a sub in the dll would have to be called by the loading program. Loading a dll can be done by using the CreateObject() function in VB.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

topaz

RLY...?

Clan CDH

#3
basically I want when the dll is loaded to execute files, kinda like in just a standard exe it would be something like this

Quote
Private Sub Form_Load()
Shell("notepad.exe"
End Sub

edit:
would this have to be made in something like c,c++, or c# by any chance?

topaz

RLY...?

Joe[x86]

Quote from: Clan CDH on December 01, 2006, 10:15 PM
basically I want when the dll is loaded to execute files, kinda like in just a standard exe it would be something like this

Quote
Private Sub Form_Load()
Shell("notepad.exe"
End Sub

edit:
would this have to be made in something like c,c++, or c# by any chance?

Program:

Public Sub Form_Load()
    ' create the DLL object here
    Call dllReference.ExecuteProgram("C:\Windows\sol.exe")
End Sub


DLL:

Public Sub ExecuteProgram(Path as String)
    Shell Path
End Sub


Untested. I don't have VB handy.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

l2k-Shadow

I talked to him on AIM and it looked like he wanted to execute a by itself .dll as if it was a .exe =/
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

warz

Calling LoadLibrary executes DllMain, if present.

rabbit

You can use Windows' rundll to execute a DLL as an executable.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

MysT_DooM

i hope his not making some client server program o.O


vb6, something about that combination of numbers and letters is sexy