By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,172 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,172 IT Pros & Developers. It's quick & easy.

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

P: n/a
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/de...ccontrl_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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 17 '05 #2

P: n/a
Thanks!

Please see the info about m_nBackStyle at
http://msdn.microsoft.com/library/de...ccontrl_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
"HOTDOG" wrote:
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.