Hi,
I need to call a small VFP .EXE from a C#/.NET code. The VFP project has one .PRG with has just one line:
RETURN (GetEnv("UserName"))
How do I call this .EXE from C# code?
I called VFP EXE in my C# code before using the Proc syntax. Example:
Process Proc = Process.Start(cVfpExeFullPath, "1");
But before my VFP EXE didn't have to return anything. So, it was simple.
Now I want the VFP EXE to return a value and capture this value in the C# code.
How?
TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham