Migration of MFC 6.0 application to 7.0
-
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.
-
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.
Hi, did you solve the problem with _GetBaseMessageMap in VC7? I ran into the same problem.