Add a .exe file to a Visual Basic Application - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Add a .exe file to a Visual Basic Application

ZontralZontral Posts: 2Member
Hey does anyone have a script or code that lets you add a .exe file to a Visual Basic Application?

Comments

  • phph Posts: 393Member
    : Hey does anyone have a script or code that lets you add a .exe file to a Visual Basic Application?
    :

    you can embed any file into an OLE control, then when you wanna execute the file (txt, wri, exe, anything) just use the following command:
    [code]
    OLE1.DoVerb
    [/code]
    where OLE1 is the name of your ole control. I use this method for lots of stuff. Keep in mind that this will drastically increase the file size of your main executable because it actually embeds the contents of the ole control right into your program.
    [red]ph[/red][blue][/blue][red]t[/red]
    [red]http://jmcivor.com[/red]
    [red][email protected][/red]

  • ZontralZontral Posts: 2Member
    : : Hey does anyone have a script or code that lets you add a .exe file to a Visual Basic Application?
    : :
    :
    : you can embed any file into an OLE control, then when you wanna execute the file (txt, wri, exe, anything) just use the following command:
    : [code]
    : OLE1.DoVerb
    : [/code]
    : where OLE1 is the name of your ole control. I use this method for lots of stuff. Keep in mind that this will drastically increase the file size of your main executable because it actually embeds the contents of the ole control right into your program.
    : [red]ph[/red][blue][/blue][red]t[/red]
    : [red]http://jmcivor.com[/red]
    : [red][email protected][/red]
    :
    :

    So OLE1.DoVerb[Verb]
    What do I put there? Execute? Run? Sorry, I'm quite new to VB
  • phph Posts: 393Member
    : : : Hey does anyone have a script or code that lets you add a .exe file to a Visual Basic Application?
    : : :
    : :
    : : you can embed any file into an OLE control, then when you wanna execute the file (txt, wri, exe, anything) just use the following command:
    : : [code]
    : : OLE1.DoVerb
    : : [/code]
    : : where OLE1 is the name of your ole control. I use this method for lots of stuff. Keep in mind that this will drastically increase the file size of your main executable because it actually embeds the contents of the ole control right into your program.
    : : [red]ph[/red][blue][/blue][red]t[/red]
    : : [red]http://jmcivor.com[/red]
    : : [red][email protected][/red]
    : :
    : :
    :
    : So OLE1.DoVerb[Verb]
    : What do I put there? Execute? Run? Sorry, I'm quite new to VB
    :

    put nothing there. that command tells your ole control to execute whatever it has embedded. put that code into a button or something. ole1.doverb
    [red]ph[/red][blue][/blue][red]t[/red]
    [red]http://jmcivor.com[/red]
    [red][email protected][/red]

Sign In or Register to comment.