Visual C ++ Express 2010 will suddenly not accept #includes

I work with an API that has #defineall its include files. I am developing in Visual C ++ 2010 Express and it still works.

I added a new cpp file to the project and accidentally added "Windows Form". VC warned me that my project did not use the CLR at the moment, did I really want this? I did not click the No button and added the file as I saw fit. However, after that, my project no longer compiles.

The code looks basically like this:

api_header.h

#define DEFINED_HEADER_NAME "path/to/header/file.h"

stdhpf.h

#include DEFINED_HEADER_NAME

As I said, I worked for a long time. Now I get the following:

error C2006:: '#include'file name expected, found 'identifier'
Fatal error C1083: Cannot open include file '':: No such file or directory

? , , , Project properties > Configuration properties > C/C++ / Precompiled headers, ( , VS, ...).

?

+5
3

, , - Windows Form.

:

include #include. , , .

, , , , include :

fatal error C1083: Cannot open include file: '': No such file or directory
+7

include. , Visual Studio #include "stdhpf.h" - #include "api_header.h".

0

. .

0

All Articles