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. Migration of MFC 6.0 application to 7.0

Migration of MFC 6.0 application to 7.0

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpwpf
2 Posts 2 Posters 0 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am trying to compile my code that was created VC++ 6.0 with MFC into VC++ 7.0. I am having a few problems. Any help will be greatly appreciated. 1. I am having trouble with templates. I have following template class template class CColorCtrl : public BASE_TYPE { .. .. } I get an error C2039 : _GetBaseMessageMap is not a member of CColorCtrl BEGIN_TEMPLATE_MESSAGE_MAP(class BASE_TYPE, CColorCtrl, BASE_TYPE) //{{AFX_MSG_MAP(CColorCtrl) .. .. //}}AFX_MSG_MAP END_TEMPLATE_MESSAGE_MAP() 2. I have built Regular DLLs using MFC Dlls which I compiled in 7.0 when I use them with an .EXE that does not have threads, they work fine but when I use them with an .EXE that uses many threads, the .EXE fails at run time, at different places depending on how much work I have in each thread. When I block a lot of functionality and have only a few threads running, the application runs fine but the more threads run at the same time, the application fails for no paritcualr reason at any unreasonable points. Also, can anyone point me to a website that has information about Migrating with no warnings for the size changes of different data types. Thank you.

    U 1 Reply Last reply
    0
    • L Lost User

      I am trying to compile my code that was created VC++ 6.0 with MFC into VC++ 7.0. I am having a few problems. Any help will be greatly appreciated. 1. I am having trouble with templates. I have following template class template class CColorCtrl : public BASE_TYPE { .. .. } I get an error C2039 : _GetBaseMessageMap is not a member of CColorCtrl BEGIN_TEMPLATE_MESSAGE_MAP(class BASE_TYPE, CColorCtrl, BASE_TYPE) //{{AFX_MSG_MAP(CColorCtrl) .. .. //}}AFX_MSG_MAP END_TEMPLATE_MESSAGE_MAP() 2. I have built Regular DLLs using MFC Dlls which I compiled in 7.0 when I use them with an .EXE that does not have threads, they work fine but when I use them with an .EXE that uses many threads, the .EXE fails at run time, at different places depending on how much work I have in each thread. When I block a lot of functionality and have only a few threads running, the application runs fine but the more threads run at the same time, the application fails for no paritcualr reason at any unreasonable points. Also, can anyone point me to a website that has information about Migrating with no warnings for the size changes of different data types. Thank you.

      U Offline
      U Offline
      User 2020042
      wrote on last edited by
      #2

      Hi, did you solve the problem with _GetBaseMessageMap in VC7? I ran into the same problem.

      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