473,782 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:\Microso ft .NET 2002\Vc7\atlmfc \include\atltim e.h
error C2065: 'm_hWnd' : undeclared
identifier", "d:\Microso ft .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 1341
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*******@disc ussions.microso ft.com>
Sender: "rvan" <an*******@disc ussions.microso ft.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: AcOTWOfqQLxi7EF 1SEGtTRCDhtiS3Q ==
Newsgroups: microsoft.publi c.dotnet.langua ges.vc
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29444
NNTP-Posting-Host: TK2MSFTNGXS01 10.40.2.125
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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:\Microso ft .NET 2002\Vc7\atlmfc \include\atltim e.h
error C2065: 'm_hWnd' : undeclared
identifier", "d:\Microso ft .NET 2002\Vc7
\atlmfc\includ e\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
1532
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 _3141592654,__3141;_314159,_3141;main(){register char* _3_141,*_3_1415, *_3__1415; register int _314,_31415,__31415,*_31,
13
2051
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 solution seems to be to delete the existing code, re-type ir word for word and hey presto it works. Of course you might think typo or something but its like Access seems
5
6759
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() { throw new Exception("exception thrown"); }
26
10884
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 compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
8
2354
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, upon looking at the example i understand why it fails to link but don't understand why it even compiles. Here's the code, which split between 2 files Def.cpp and Use.cpp: //File Def.cpp
13
4387
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 CAN communication software that i wrote earlier in windows environment(as we get drivers for these CAN cards only for the windows). my problem started when i started to move the code from linux to the visual studio. after many compilation and...
10
2228
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 argument list argument types are: (obj *) : defclass::base(p) ^ detected during instantiation of
8
2340
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
2277
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 working fine on linux. I know that C++ is independent of OS, but still check it on g++ compiler. Thanks a lot in advance. Anchit CODE: #include<iostream>
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10311
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.