1> Automatically linking with Prof-UIS library: ProfUIS250smd.lib
1> (Professional User Interface Suite)
1>d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxmt.h(105) : error C2011: ’CMutex’ : ’class’ type redefinition
1> d:\sa_itf_new\src\libs\devlib\win\mutex.h(9) : see declaration of ’CMutex’
1>d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxmt.h(150) : error C2011: ’CCriticalSection’ : ’class’ type redefinition
1> d:\sa_itf_new\src\libs\devlib\win\criticalsection.h(10) : see declaration of ’CCriticalSection’
1>d:\sa_itf_new\src\pokerdebugger\prof-uis\include\extcmdmanager.h(931) : error C2079: ’CExtCmdManager::m_cs’ uses undefined class ’CCriticalSection’
When I try to build the same sample application with just MFC (without using Prof-UIs ) dialog application, it works fine. I also checked with VS2008 and also checked the order of include paths in my VC++ include directory. They are in a perfect order like this :
(I gave Prof-UIs include path at the last). Nothing works... can any one help me why do I get these errors ? These redefinitions are library ones and are not directly used by my project.
My stdafx.h has all default definitions and inclusions (as written by wizards). when I try to include my files in the following order :
//windows default definitions and inclusions
then I get the above mentioned errors. If I try to change the inclusion order to
//windows mfc inclusions
then I get "Windows.h" is already defined . MFC applications must not include <windows.h>.
I tried with all possible combinations of inclusions but of no help. What do I basically miss here ? How can I get rid of these multiple redefinition errors ?
I tried with MFC static library and Shared DLL too....errors remain same...
Looking forward for the earliest reply,