Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to embed files in VB.NET?

Status
Not open for further replies.

mattp14

Programmer
Apr 8, 2005
35
US
Say i'm writing a program that depends on a few other .exe and .dll files to work correctly. Instead of including those in the same directory as my app, i'd like to have my app "generate" those files. Thus making it more robust, portable, and secure.

Is this possible? I've played around with the resource manager to no avail already.

Any help would be appreciated.

Thank you!
 
but it will run in your thread of execution.

Couldn't you get arround that by creating a seperate thread then launching the new assembly in that thread though?

It definitely bears looking at though... would you have any idea how to launch a process from a memory stream?

You need a byte array, a memory stream holds a whole bunch of bytes in memory... see where this is going?

Unfortunatly, it's friday and I'm home for the weekend, because Chiph's code gave me some ideas and I think I might have some more code to get an exe to launch from a byte array. Ahh well, I'll try to remember on monday.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Thanks Rick. I've got the byte array of the exe i want to launch, and have it loaded into a memory stream as i posted above. Any help would be appreciated :)

And thanks to everyone who has tried to help out!
 
Anyone have any thoughts on this one yet?

Thanks :)
 
Sorry, been battling with the new invoice system. I'll try to look at it sometime.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top