I'm running the program below and I enter in the file name and the output file and then a message box appears that reads...
The instruction at "0x00406375" referenced memory at "0xdddddddc". The memory
could not be "read"
Click OK to terminate the application
Click CANCEL to debug the application
*Here is the code That I'm using*
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
using namespace std;
#define USE_SAVED_MARKER 0
void ParseOnly(ifstream in, ofstream out);
void main()
{
ifstream in;
ofstream out;
string path = "c:\\projects\\qrt4\\";
string text = ".txt";
string filename;
string outfile;
cout << "Enter desired filename: ";
cin >> filename;
filename = path + filename + text;
in.open(filename.c_str());
cout << "Enter output file: ";
cin >> outfile;
outfile = path + outfile + text;
out.open(outfile.c_str());
ParseOnly(in, out);
}
void ParseOnly(ifstream in, ofstream out)
{
...
...
...
}
If anyone can tell me why i'm getting this problem and possibly how to fix it would be greatly appreciated! Thanx...
The instruction at "0x00406375" referenced memory at "0xdddddddc". The memory
could not be "read"
Click OK to terminate the application
Click CANCEL to debug the application
*Here is the code That I'm using*
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
using namespace std;
#define USE_SAVED_MARKER 0
void ParseOnly(ifstream in, ofstream out);
void main()
{
ifstream in;
ofstream out;
string path = "c:\\projects\\qrt4\\";
string text = ".txt";
string filename;
string outfile;
cout << "Enter desired filename: ";
cin >> filename;
filename = path + filename + text;
in.open(filename.c_str());
cout << "Enter output file: ";
cin >> outfile;
outfile = path + outfile + text;
out.open(outfile.c_str());
ParseOnly(in, out);
}
void ParseOnly(ifstream in, ofstream out)
{
...
...
...
}
If anyone can tell me why i'm getting this problem and possibly how to fix it would be greatly appreciated! Thanx...