Can't Access Application Class data members.
Posted on 1998-11-25
I have and SDI application. I have declared few public
variables to the Application Class as well as MainFrame class.
How do I access these variables from a new class created
by me? When I used AfxMainWnd()-> or AfxGetApp()->
it gave the following errors respectively.
error C2039: 'EntityFileName' : is not a member of 'CWnd'
error C2039: 'EntityFileName' : is not a member of 'CWinApp'
I had declared 'EntityFileName' as a Cstring in the respective classes. Is it that only base class members are
accessed using those functions?
What is the solution???