Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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]phet@shaw.ca[/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]phet@shaw.ca[/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]phet@shaw.ca[/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]phet@shaw.ca[/red]

Sign In or Register to comment.