error C2065/error C3861: 'm_nBackStyle': identifier not found, eve

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
 
G

Guest

m_nBackStyle looks like a member of a class, But why you use it directly.
Maybe it has been declared in other .h , I suggest you search it in you
project
 
G

Guest

Thanks!

Please see the info about m_nBackStyle at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceatl/htm/cccontrl_72.asp

nBackStyle is defined in a .h file in another project, in the same solution.
There are several projects in the same solution.
If it is because the project dependence info was lost after i transfer the
project to VS .NET, how can i figure out the dependence relationship between
the projects and recover that quickly?

Thanks for your help!

Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top