how to get return value out of tested application put into testcomplete project variable
I have an c# application which does some work (separate from any script) and I need to get the result out of it back into my testcomplete script any way possible, so far I have tried the 'Creating Connected Applications in C#', I am able to start the c#.exe from my unit script below, but I don't know how to get the string result of the application. So far I am trying the method where testecomplete has the dll in its project CLR bridge, so I thought it has access to the object of my C# application, and its result-right? Or is there another way? I checked the help, and wish I had seen there was an example for this.
My project looks like this:
p = TestedApps["Items"](0)["Run"](); //this is Authentication.Authprogram C# program
//HOW TO GET STRING RESULT from the app I just started? p.?
public static string HttpPost(string uri, string parameters)
//etc, etc, does some stuff -tested it, this function works!
I followed the help carefully , included the testcomplete 2 dll's in the C# application assembly and got the app's dll put and recognized into testcomplete project properties, etc.Thanks for any advice!