clam61

I am working with some 3rd party software and it has limitations, so let me know if this this possible in C#

forgive me as i am new to DLLs, etc. and might use the wrong terminology or have the wrong concepts in my mind.

I need to have a DLL called "parent" start a thread or even an executable called "child".

the problem is that the when the DLL function terminates, i dont know how I will have a handle to the child application.

i need to issue commands to this child program.

im thinking the child could be a daemon type program and i would communicate to it via sending messages through a port.

id rather now...but i am new to the .NET world and cannot think of any other way. is there a way to get the PID and somehow talk to it that way


Thanks


Re: Visual C# General Threading question. Is this possible?

Ðãv? S. Â???????

Create a method in the parent module that returns the handle. The method would be called from a child module to receive the handle.





Re: Visual C# General Threading question. Is this possible?

rpranav

If you are looking for two separate processes, you can also start a process and use IPC channel (available with remoting and also WCF) to communicate. Let me know if you need more infor on this.





Re: Visual C# General Threading question. Is this possible?

clam61

nice! IPC channel seems like the way to go...ill try it out and let me know if you have any problems. thanks!