This is my global class:
The classes CLParser and file FILE_ were included before global class. I need to have access to MyGlobalClass within these two classes. But the problem is that MyGlobalClass was not declared before. How to solve this problem?Code:#include "stdafx.h" MyGlobalClass::MyGlobalClass(int argc, char* argv[]){ CLParser * CLPars( MyGlobalClass& ); FILE_ * File( MyGlobalClass& ); CLPars.ParseArgs(argc, argv); }
I tried to access the global class as so:
But MyGlobalClass is undeclared.Code:class FILE_{ public: void FILE_( MyGlobalClass& ); }




Reply With Quote
