473,386 Members | 1,705 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,386 software developers and data experts.

Errors when compiling a VC6 project in VC2005

I try to compile a project built using VC++6 in VC++ 2005 and got
following errors when trying to build the project after clearing out
all the other errors in *.CPP file:

error C2248: 'CObject::CObject': cannot access private member declared
in class 'CObject' file c:\programmi\microsoft visual studio
8\vc\atlmfc\include
\afx.h(553) : see declaration of 'CObject::CObject'
c:\programmi\microsoft visual studio 8\vc\atlmfc\include
\afx.h(524) : see declaration of 'CObject'
This diagnostic occurred in the compiler generated function
'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CMap(const
CMap<KEY,ARG_KEY,VALUE,ARG_VALUE&)'
with
[
KEY=_HTREEITEM,
ARG_KEY=_HTREEITEM,
VALUE=int,
ARG_VALUE=int &
]

where _HTREEITEM is
#include <commctrl.h>
extern "C" struct _TREEITEM{};
typedef struct __TREEITEM :public _TREEITEM
{
public:
long vuoto;//non serve a nulla
private:
public:
__TREEITEM (){vuoto=0;}
virtual ~__TREEITEM (){vuoto=0;}
public: __TREEITEM (const __TREEITEM& c){vuoto=c.vuoto;}

}_STREEITEM,*_HTREEITEM;

but the only CMap is
typedef CMap<DWORD , DWORD , _HTREEITEM, _HTREEITEM&CPHTIMap;

This diagnostic occurred in the compiler generated function
'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CMap(const
CMap<KEY,ARG_KEY,VALUE,ARG_VALUE&)'
with
[
KEY=_HTREEITEM,
ARG_KEY=_HTREEITEM,
VALUE=int,
ARG_VALUE=int &
]

why the diagnostician has reversed the classes?

now can I disable the diagnostician?

Waiting for best times, considering that the lib together with the
control is mine, I am able link the new project vc2005 with the
old .lib-vc6?
ciao... fabio

Mar 2 '07 #1
0 1516

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris | last post by:
Hi I have a project that was written in V6.0 (c/c++) and it works just fine, but when I run it in .NET 2003 (V7.0), I get a whole lot of linking errors. I have spent alot of time trying to...
0
by: Doru Pacurari | last post by:
Hello everyone, Background information: OS: Win 2000 Server Development environment: Microsoft C++ .NET, version 7.1.3088, BUT code written in conventional C++ Problem:
2
by: Steve Richter | last post by:
I have a working 6.0 project. unicode, mfc in static library, WinMain is the entry proc ... I open the project in .NET, it is converted ok, now in the build I am getting errors. The first...
5
by: genc_ymeri | last post by:
Hi over there, We are a team of 6 developping web applications (ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of us get the below error in (PS). We believe that the "acess is...
2
by: Bart Simpson | last post by:
I am writing a communications library which makes extensive use of the STL and templates in general. I am using VC7 to compile because of alledged better support for templates etc. However, I...
3
by: walkeraj | last post by:
I'm trying to compile an open source game called IVAN , and I'm able to compile it from a makefile, but not from an IDE. I have attempted to recreate the way the makefile compiles the project as...
1
by: | last post by:
I'm having a problem finding the cause for this problem. I have a solution in Visual Studio 2005 that contains two projects -- a Web Site and a Class Library. The web site references the class...
4
by: marathoner | last post by:
I tried your advice, and replaced "ifstream" with "std::ifstream". I also replaced instances of "ofstream" with "std::ofstream". Those syntax errors were resolved. When I added "std" to the...
4
by: Franky | last post by:
I have a cpp program that use to compile in C++6 but give a bunch of errors in VS2005 I'm wondering if I need to reference to some library. I'd appreciate any helpful suggestion Even if...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.