Advertisement

02.03.2005 at 04:24AM PST, ID: 21300070
[x]
Attachment Details

Code compiles in VC++ 6.0 but not VS.NET

Asked by phoenix260182 in Microsoft Visual C++.Net

Tags: , ,

Hi

I have a project that was written in VC++ 6.0 and compiles fine in that, but if I try to compile it under Visual Studio .NET, everything breaks. I managed to fix some of it by fiddling with the precompiled header options in the project settings, but that's as far as I can get it. These are the new errors that I am getting, that I shouldn't be getting.

c:\Msdev\Projects\genmacrokern\MacroWindowFuncs.cpp(1193): error C2663: 'ATL::CSimpleStringT<BaseType,t_bMFCDLL>::GetBuffer' : 2 overloads have no legal conversion for 'this' pointer
        with
        [
            BaseType=char,
            t_bMFCDLL=true
        ]

c:\Msdev\Projects\genmacrokern\MacroMathLib.cpp(108): error C2440: 'type cast' : cannot convert from 'overloaded-function' to 'int'

It can't be something wrong with the code (surely?) since it does compile under VC++ 6.0. What has been changed between the versions that might do this, and what can I do about it?

Thanks in advance

Start Free Trial
[+][-]02.03.2005 at 04:37AM PST, ID: 13213323

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:31AM PST, ID: 13223274

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:33AM PST, ID: 13223285

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:33AM PST, ID: 13223287

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 06:46AM PST, ID: 13225920

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 07:12AM PST, ID: 13226236

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.05.2005 at 05:30PM PST, ID: 13236627

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 12:06AM PST, ID: 13242323

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 08:27PM PST, ID: 13251412

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 10:42PM PST, ID: 13251852

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2005 at 10:49PM PST, ID: 13261515

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C++.Net
Tags: c2663, csimplestringt, have
Sign Up Now!
Solution Provided By: teratoma
Participating Experts: 3
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32