Visual Studio 2005 conversion problem/question.
-
Hello. I recently converted a VC6 project to 2005, and am getting the following error: c:\myApp.cpp(1036) : error C2065: 'm_msgCur' : undeclared identifier This error is occuring in my CWinApp derived class' Run (). In the previous version m_msgCur was a member of CWinThread, but in 2005 I can only find it in "class _AFX_THREAD_STATE : public CNoTrackObject" in afxstat.h Can anyone shed some light on where I can get the current message under 2005? Or how this has changed? Thanks for any thoughts.
-
Hello. I recently converted a VC6 project to 2005, and am getting the following error: c:\myApp.cpp(1036) : error C2065: 'm_msgCur' : undeclared identifier This error is occuring in my CWinApp derived class' Run (). In the previous version m_msgCur was a member of CWinThread, but in 2005 I can only find it in "class _AFX_THREAD_STATE : public CNoTrackObject" in afxstat.h Can anyone shed some light on where I can get the current message under 2005? Or how this has changed? Thanks for any thoughts.
How about this: _AFX_THREAD_STATE* pState = AfxGetThreadState(); MSG msg = pState->m_msgCur; ? gmileka