B
bruceminoo
Hi
I have a problem where I am using VC6. I can normally find solutions
on the web or newsgroups but this one is eluding me probably because
the answer is so simple;
I have developed a program using one .cpp file
The program has grown and I now span a number of .cpp files
I have managed to set up the .h files and the program works with one
important exception
I have a file that I open & leave open for the programs execution
ofstream Cout ("output_log.txt" , ios:ut); // this is a testing log
ie drop << to it
I want to access Cout in the other .cpp files - but I don't know how
to refer to Cout in the appropriate headers.
{
The reason that I am doing this is because I am moving my program from
a console program to a windows enabled program and until I get the
program going I want the convience of having a
cout << "xxxx" << endl;
syntax
}
thanks for any answers
Bruce
I have a problem where I am using VC6. I can normally find solutions
on the web or newsgroups but this one is eluding me probably because
the answer is so simple;
I have developed a program using one .cpp file
The program has grown and I now span a number of .cpp files
I have managed to set up the .h files and the program works with one
important exception
I have a file that I open & leave open for the programs execution
ofstream Cout ("output_log.txt" , ios:ut); // this is a testing log
ie drop << to it
I want to access Cout in the other .cpp files - but I don't know how
to refer to Cout in the appropriate headers.
{
The reason that I am doing this is because I am moving my program from
a console program to a windows enabled program and until I get the
program going I want the convience of having a
cout << "xxxx" << endl;
syntax
}
thanks for any answers
Bruce