Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual Studio 2005 conversion problem/question.

Visual Studio 2005 conversion problem/question.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestioncsharpc++visual-studio
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CodeGoose
    wrote on last edited by
    #1

    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.

    G 1 Reply Last reply
    0
    • C CodeGoose

      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.

      G Offline
      G Offline
      georgeraafat
      wrote on last edited by
      #2

      How about this: _AFX_THREAD_STATE* pState = AfxGetThreadState(); MSG msg = pState->m_msgCur; ? gmileka

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups