Upgrading program in Visual C++ 6.0 to Visual C++ 2010

Hi,

I have a program that is written in Visual C++ 6.0.

This program is using static library.

When I try to upgrade only the header file, I get error like:

error C1083: Cannot open include file: '..\StdAfx.h': No such file or directory

But i have include "stdafx.h" in the header file.

I wanted to attach the program here but seemingly this forum does not have the facility.

What should I do then?

These are the errors:
Error	1	error C1083: Cannot open include file: '..\StdAfx.h': No such file or directory	e:\myworks\2014 iid johor\des2\des2\targetver.h	7	1	DES2


	2	IntelliSense: cannot open source file "..\StdAfx.h"	e:\myworks\2014 iid johor\des2\des2\targetver.h	7	1	DES2


	3	IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds	c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxver_.h	81	3	




Last edited on
you are looking for the stdafx.h at one level up the project directory. Make sure you are doing it correctly. probably try to give a full path and see if it picks it. If it does, this means the relative path has some problem.

Also, if you do not want to use the precompiled header, you can turn it off from project properties -> c++ -> precompile headers
Topic archived. No new replies allowed.