Hi there,
I am new to C++ programming. What I want to do is, after I browse for a file using openFileDialog and after transforming the path from a System::String into a Char * what I want to do is to use the file`s path to open that file, but with simple \ between the root folders C++ doesn`t let me do that so I want to add another \ after every existing \ from the example path:C:\Users\NINJAH\Documents\Visual Studio 2008\Projects\myfile.txt so it will become C:\\Users\\NINJAH\\Documents\\Visual Studio 2008\\Projects\myfile.txt.
What I`ve tried is:
for (int i=0;i!=sizeof(nstring);i++){
if (nstring[i]= '\' )
nstring[i]=nstring[i]+ "\";
}
but it doesn`t work.
Please help!