G
Guest
Hello,
I have an old project, built with VC++. Now need to be compiled
in Visual Studio .Net 2003.
The project is going to build a DLL.
When i try to compile the project, i got the following errors:
c:\thepath\aaa.cpp(890): error C2065: 'm_nBackStyle' : undeclared identifier
c:\thepath\aaa.cpp(890): error C3861: 'm_nBackStyle': identifier not found,
even with argument-dependent lookup
c:\thepath\aaa.cpp(891): error C3861: 'm_nBackStyle': identifier not found,
even with argument-dependent lookup
c:\thepath\aaa.cpp(892): error C3861: 'm_nBackStyle': identifier not found,
even with argument-dependent lookup
in aaa.cpp, 'm_nBackStyle' are used as the following (only used here)
// Set up background mode.
890: if(m_nBackStyle != 1 && m_nBackStyle != 2)
891: m_nBackStyle = 2;
892: SetBkMode(di.hdcDraw, m_nBackStyle);
in aaa.h, i have:
#include <atlctl.h>
and aaa.h is already included in aaa.cpp.
I found some info about m_nBackStyle at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceatl/htm/cccontrl_45.asp
But, i do not know where i should declare m_nBackStyle.
Could you please tell me more details and help me fix the problem.
Thanks a lot!
Vic
I have an old project, built with VC++. Now need to be compiled
in Visual Studio .Net 2003.
The project is going to build a DLL.
When i try to compile the project, i got the following errors:
c:\thepath\aaa.cpp(890): error C2065: 'm_nBackStyle' : undeclared identifier
c:\thepath\aaa.cpp(890): error C3861: 'm_nBackStyle': identifier not found,
even with argument-dependent lookup
c:\thepath\aaa.cpp(891): error C3861: 'm_nBackStyle': identifier not found,
even with argument-dependent lookup
c:\thepath\aaa.cpp(892): error C3861: 'm_nBackStyle': identifier not found,
even with argument-dependent lookup
in aaa.cpp, 'm_nBackStyle' are used as the following (only used here)
// Set up background mode.
890: if(m_nBackStyle != 1 && m_nBackStyle != 2)
891: m_nBackStyle = 2;
892: SetBkMode(di.hdcDraw, m_nBackStyle);
in aaa.h, i have:
#include <atlctl.h>
and aaa.h is already included in aaa.cpp.
I found some info about m_nBackStyle at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceatl/htm/cccontrl_45.asp
But, i do not know where i should declare m_nBackStyle.
Could you please tell me more details and help me fix the problem.
Thanks a lot!
Vic