473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
2 1811
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Olivier | last post by:
VC don't find "WideCharToMultiByte" when I try to compile this code : bug_report.cpp(18) : error C2039: 'CPCP_ACP' : n'est pas membre de 'operator``global namespace''' bug_report.cpp(18) :...
1
by: KK | last post by:
Dear All I'm having an application developed in VC++6.0.Now i'm trying to complie the same with Visual Studio.Net 2003,but getting some strange errors.Can anybody help to get out of these...
7
by: GRoll35 | last post by:
I have 3 files here - Header/Implementation/Driver All it has to do is send the user's input (age)..to the class and the class will figure out the price of the ticket. I'm suppose to create the...
2
by: teddybyte | last post by:
my script below is: #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, ...
6
by: Bobrick | last post by:
Hi. Thanks to everyone who replied to my last post, it turns out it wasn't the line where I was trying to treat the variable in question as an array which was the problem, but the line above. ...
3
by: jumpman17 | last post by:
OK, I'm getting just this one error. error C3861: 'upload_data': identifier not found I have that function in the header file, why is it not seeing it? I can post code if needed.
25
by: notahipee | last post by:
I have been trying to cin an number from 0 to 9 with a leading 0. For example 00 or 07. I was using a switch case. switch (int) { case 01: break; case 02: break;..... My problem arises at 08...
4
by: VikrantS | last post by:
Hi, I am migrating code from VS 6.0 to VS2008. The Code compiles in VS 6.0 but gives the following errors when compiled in VS 2008, --- \Program Files\VC\atlmfc\include\afxcmn.inl(376) : error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.