Author | Message | Time |
---|---|---|
Clan CDH | How would I do this via a dll made in VB6??? | December 2, 2006, 2:54 AM |
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. | December 2, 2006, 3:29 AM |
Topaz | Shell(), exec() | December 2, 2006, 3:56 AM |
Clan CDH | 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 [/QUOTE] edit: would this have to be made in something like c,c++, or c# by any chance? | December 2, 2006, 4:15 AM |
Topaz | no | December 2, 2006, 4:22 AM |
JoeTheOdd | [quote author=Clan CDH link=topic=16097.msg162074#msg162074 date=1165032911] 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 [/QUOTE] edit: would this have to be made in something like c,c++, or c# by any chance? [/quote] Program: [code]Public Sub Form_Load() ' create the DLL object here Call dllReference.ExecuteProgram("C:\Windows\sol.exe") End Sub[/code] DLL: [code]Public Sub ExecuteProgram(Path as String) Shell Path End Sub[/code] Untested. I don't have VB handy. | December 2, 2006, 6:32 AM |
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 =/ | December 2, 2006, 3:21 PM |
warz | Calling LoadLibrary executes DllMain, if present. | December 2, 2006, 6:47 PM |
rabbit | You can use Windows' rundll to execute a DLL as an executable. | December 3, 2006, 1:16 AM |
MysT_DooM | i hope his not making some client server program o.O | December 3, 2006, 5:00 AM |