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

code compiles in 6.0 and doesn't compile in 7.0

Hi,

I am trying to port one of my older MFC APP created in VC
6.0 to VC 7.0. Right away after starting the compile
process, I get following errors and compilation stops.
"d:\Microsoft .NET 2002\Vc7\atlmfc\include\atltime.h
error C2065: 'm_hWnd' : undeclared
identifier", "d:\Microsoft .NET 2002\Vc7
\atlmfc\include\atltime.h error C2501: 'LASSERT' : missing
storage-class or type specifiers"

I have VStudio 6.0, VStudio .NeT 2002 and VS.NET 2003
loaded on the same machine. Could this be an issue?

I am noticing these errors only after I installed VS.NET
2003.

Ravi
Nov 16 '05 #1
1 1327
looks like the vc 7 headers are being used..You should put the VS.NET 2003
headers first in your include path.
--------------------
Content-Class: urn:content-classes:message
From: "rvan" <an*******@discussions.microsoft.com>
Sender: "rvan" <an*******@discussions.microsoft.com>
Subject: code compiles in 6.0 and doesn't compile in 7.0
Date: Wed, 15 Oct 2003 13:14:15 -0700
Lines: 18
Message-ID: <25****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcOTWOfqQLxi7EF1SEGtTRCDhtiS3Q==
Newsgroups: microsoft.public.dotnet.languages.vc
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29444
NNTP-Posting-Host: TK2MSFTNGXS01 10.40.2.125
X-Tomcat-NG: microsoft.public.dotnet.languages.vc

Hi,

I am trying to port one of my older MFC APP created in VC
6.0 to VC 7.0. Right away after starting the compile
process, I get following errors and compilation stops.
"d:\Microsoft .NET 2002\Vc7\atlmfc\include\atltime.h
error C2065: 'm_hWnd' : undeclared
identifier", "d:\Microsoft .NET 2002\Vc7
\atlmfc\include\atltime.h error C2501: 'LASSERT' : missing
storage-class or type specifiers"

I have VStudio 6.0, VStudio .NeT 2002 and VS.NET 2003
loaded on the same machine. Could this be an issue?

I am noticing these errors only after I installed VS.NET
2003.

Ravi


Nov 16 '05 #2

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

Similar topics

4
by: Jack | last post by:
The code at the bottom is obfuscated c and was a category winner of the 1989 IOCCC http://www.ioccc.org/1989/roemer.c Does anyone have a trick to make it compile under g++? Thanks. char...
13
by: AFKAFB | last post by:
Hi Sometimes when i edit previously saved VBA code e.g. To update field names etc the revised code does not work. Even if i copy and paste in a previous version it does not work. The only...
5
by: n_o_s_p_a__m | last post by:
Can't compile. Does this mean that all functions that throw exceptions must be of return type void? examples: // won't compile: "not all code paths return a value" public override int Run() {...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
8
by: mastermagrath | last post by:
Hi, I'm about half way through Bruce Eckels thinking in C++ Vol 1. He gives a very short example of how compiler function name decoration helps remove subtle bugs by type-safe linkage. However,...
13
by: jc | last post by:
I have written a parser using bison and flex to read ASAP2 file for CAN communications. entire development was done in an unix environment and now the code is ready to be integrated to an existing...
10
by: Keith Halligan | last post by:
I'm switching from the HP-UX compiler aCC 5.55 to aCC 6.13 and I get the following error: "templateptr.h", line 20: error #2289: no instance of constructor "defclass::base::base" matches the...
8
by: mohammaditraders | last post by:
#include <iostream.h> #include <stdlib.h> #include <conio.h> #include <string.h> class Matrix { private : int numRows, numCols ; int elements ;
14
by: anchitgood | last post by:
Hey, I have developed the following code and it is executing well on windows. But I don't have LINUX installed on my system. I would be grateful to you guys if you check whether this code is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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?
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...

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.