Hello.
I have tried to invoke bc3 from c++ using the system command. i've made use of the qc switch. However, an error 100 is being shown. if the files are directly in D: without in any subfolders, then no error is being shown. Plz help
here is the code
void main()
{
ifstream myfile1("D:\\Documents and Settings\\e517943\\My Documents\\TEST\\New Folder\\data1.txt");
ifstream myfile2("D:\\Documents and Settings\\e517943\\My Documents\\TEST\\data1.txt");
ofstream out;
out.open("dump.txt");
char line1[100];
char line2[100];
int ret_val=0;
int i=0, j=0,k=0;
ret_val=system("\"C:\\Program Files\\Beyond Compare 3\\BComp.exe\"/qc D:\\Documents and Settings\\e517943\\My Documents\\TEST\\New Folder\\data1.txt D:\\Documents and Settings\\e517943\\My Documents\\TEST\\data1.txt");
cout<<ret_val;
}
the ret_val is being shown as 100. If the files are directly in D:, no error is being shown.
I have tried to invoke bc3 from c++ using the system command. i've made use of the qc switch. However, an error 100 is being shown. if the files are directly in D: without in any subfolders, then no error is being shown. Plz help
here is the code
void main()
{
ifstream myfile1("D:\\Documents and Settings\\e517943\\My Documents\\TEST\\New Folder\\data1.txt");
ifstream myfile2("D:\\Documents and Settings\\e517943\\My Documents\\TEST\\data1.txt");
ofstream out;
out.open("dump.txt");
char line1[100];
char line2[100];
int ret_val=0;
int i=0, j=0,k=0;
ret_val=system("\"C:\\Program Files\\Beyond Compare 3\\BComp.exe\"/qc D:\\Documents and Settings\\e517943\\My Documents\\TEST\\New Folder\\data1.txt D:\\Documents and Settings\\e517943\\My Documents\\TEST\\data1.txt");
cout<<ret_val;
}
the ret_val is being shown as 100. If the files are directly in D:, no error is being shown.
Comment