Function Call in other exe file

  • Thread starter Thread starter William Ryan eMVP
  • Start date Start date
W

William Ryan eMVP

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/
 
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?
 
I have a Windows Service exe file (it's executed) and I want to call
function which is in this exe from my code.
How can I do it?
 
Can you send me some little simples of each method?

Jackson Davis said:
There are a number of ways you can do this:
1. The service exe can expose itself in the running object table. The
client can get the instance from there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top