Visual Basic .NET include .exe in project and attach to main process

wfskmoney
wfskmoney used Ask the Experts™
on
I have a VB.NET project (main.exe) and include an additional .exe application as internal resource. Now I do not want to run the extra .exe as a separate process but want to attach it to the process of main.exe so I have just 1 process overall and not 2.

How could this be done?

Thank you!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
I believe you need to change the .exe application into a .dll, so you can reference it on main.exe.  Otherwise, the only way to execute the .exe application is by having a separate process.

Author

Commented:
OK. more specifically, if the additional .exe is written Python and compiled a EXE could it be converted into a .dll at all? If yes how would it be used from within VB.NET then? Thanks!
Top Expert 2011
Commented:
No, in this case you need to change the Python project to compile into a DLL instead of a EXE.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial