reaching an external application  
Author Message
kemal





PostPosted: Visual C# General, reaching an external application Top

Is it possible to reach an external windows application via C# language.For example translater program that running on windows xp. I want to send a text to the translater and then it will give to me the results. Any suggestion

thanks.



Visual C#20  
 
 
Dennis Stone - MSFT





PostPosted: Visual C# General, reaching an external application Top

What kind of application is the translator, is it a GUI app, a console app, or something else If it's a GUI app sending keystrokes to it from another app written in C# will be no problem but depending on how the translator works getting back the result may be trickier.

 
 
ahmedilyas





PostPosted: Visual C# General, reaching an external application Top

could you not use the ProcessStartInfo class to kick off and re direct the input/output/error streams back to your application

 
 
RizwanSharp





PostPosted: Visual C# General, reaching an external application Top

It depends if Translator Application is exposing any communication Channel to do this, Like Remoting etc.

Or also if application is accepting any command line Arguments to do that and dump the result to some Stream, Yo u read the Stream Afterwards...

There are hundreds of ways to do things but all depends on the External Application.

If your convern is specifically Having Translation for your application from some other source then the best way to do this is that you call many of free translation webservices on the web, You can send them text and tell them what language is it and what you want back It'll give you the result!

Search google for Translation Webservice!

I hope this will help!

Best Regards,