J
jlea
I'm trying to pass a filename, obtained with using the fileName property
from the OpenFileDialog, as a application parameter in
Process.StartInfo.Arguments and run a MFC/C++ application using the Start
method.
When I hardcode the application parameter such as "/name=c:\\myFile.txt" all
is well in the C++ application.
When I use the fileName property to build the parameter, the string becomes
@"/name=c:\myFile.txt" which makes the C++ application unhappy.
How does one get rid of the @ and get the single backslash to a double
backslash to make the C++ application happy?
I'll tried converting the string to a char[] and then rebuilding the string
but as soon as I add the "\\" to the string, the @ is added and only a
single backslash is added.
Thanks.
Jon.
from the OpenFileDialog, as a application parameter in
Process.StartInfo.Arguments and run a MFC/C++ application using the Start
method.
When I hardcode the application parameter such as "/name=c:\\myFile.txt" all
is well in the C++ application.
When I use the fileName property to build the parameter, the string becomes
@"/name=c:\myFile.txt" which makes the C++ application unhappy.
How does one get rid of the @ and get the single backslash to a double
backslash to make the C++ application happy?
I'll tried converting the string to a char[] and then rebuilding the string
but as soon as I add the "\\" to the string, the @ is added and only a
single backslash is added.
Thanks.
Jon.