It would be a lot easier if it was a .dll and you just added a reference,
however if you don't mind doing a little work, you can do it with
System.Reflection. You won't be passing it to that function per se unless
you want to start that .exe. If you want to use that function and use
reflection you'll be creating it locally so to speak.
Check out Reflection on MSDN
HTH,
Bill
--
W.G. Ryan MVP Windows - Embedded
http://forums.devbuzz.com http://www.knowdotnet.com/dataaccess.html http://www.msmvps.com/williamryan/
"msnews.microsoft.com" <da*********@hotmail.com> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
Hello.
Can I execute function in my code from other exe file (exe file is writen
by me)?
I also want pass some parameters to the function.
How can I do this?