i got these type of errors when just following the steps to make switch form ........
"error C2061: syntax error : identifier 'CInvoiceView'"
the error code is
pNewActiveView = (CView*)new CInvoiceView;
what's the problems ????/
tell me please
In my application the view switch should be controlled by the application itself, without user intervetion. Which modification should I make to my derived CView classes so that they message the MainFrame at the appropriate times?
I've been having lots of problems with VC6.0 in code that worked fine on 5.0, related to mix-ups with module
states. The comment that mentions using GetModuleState("yourmodule.dll") before the DoModal() got
me on the right track.
If your DLL is an ATL object, the GetModuleState above will return NULL. You need to use
GetModuleState(_Module.m_hInstResource) instead of the filename, and it works great. Eliminated lots of
problems I had with finding resources.