Thanks for taking time reading this:
void openLogFile(char* wich, ofstream* filehandle, bool* binary)
{
if(binary)
{
filehandle.open(wich,ios::out,ios::binary);
}else {filehandle.open(wich,ios::out);}
}
Well, thats my function for opening my log file. The errors returned are as follows:
C:\Dev-Cpp\Heavy prog\heavymain.cpp In function `void openLogFile(char*, std::ofstream*, bool*)':
15 C:\Dev-Cpp\Heavy prog\heavymain.cpp `open' has not been declared
15 C:\Dev-Cpp\Heavy prog\heavymain.cpp request for member of non-aggregate type before '(' token
17 C:\Dev-Cpp\Heavy prog\heavymain.cpp `open' has not been declared
EDIT:Well, acctually many others have also been returned. But its for my writeToLog and closeLogFile functions, and the errors are much the same.
I know it has to do with "filehandle" but i'm not sure how to fix it!
Any help is appreciated!
Thanks in advance.
Hope I was helpful. And thank you if you were!