B
BCC
Hi I have an application/project called HKDemo. In HKDemo.cpp, in the usual
init stuff for the main class HKDemoApp, I can use the following code with
no problems:
ofstream out_file("test.txt", ios:ut);
try {
out_file << "some stuff" << endl;
}
catch (...) {
}
out_file.close();
But this same code does not work in MainFrm.cpp! I must be missing
something really simple. Everything compiles just fine, and runs just fine
(i.e. in debug mode I can step over the code and it looks to be dumping data
to a file), but no file is created, and nothing is written.
Anyone have any suggestions as to what I am missing? Maybe its related to
the whole MVC concept?
Thanks,
Bryan
init stuff for the main class HKDemoApp, I can use the following code with
no problems:
ofstream out_file("test.txt", ios:ut);
try {
out_file << "some stuff" << endl;
}
catch (...) {
}
out_file.close();
But this same code does not work in MainFrm.cpp! I must be missing
something really simple. Everything compiles just fine, and runs just fine
(i.e. in debug mode I can step over the code and it looks to be dumping data
to a file), but no file is created, and nothing is written.
Anyone have any suggestions as to what I am missing? Maybe its related to
the whole MVC concept?
Thanks,
Bryan