I have created an App in Visual Studio and I'm using the following code to get the view:
CFrameWnd * pFrame = (CFrameWnd*)AfxGetApp()->m_pMainWnd;
CView * pView = pFrame->GetActiveView();
The problem is that I have a function in MyView that I want to use. When I try and type cast pView, like ((CMyView*)pView)->ProcessInput
, I get the error:
error C2065: 'CMyView' : undeclared identifier
How do I get a pointer so I can call ProcessInput in the MyView class. Using the #include "MyView.h" doesn't work.