code compiles in 6.0 and doesn't compile in 7.0

R

rvan

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
 
M

Mahesh Hariharan[MSFT]

looks like the vc 7 headers are being used..You should put the VS.NET 2003
headers first in your include path.
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top