I can not figure it out, on one computer (Win7, 64 bit) Microsoft Visual C ++ Express 2010 is installed. This is what the browser looks like
alt text

Microsoft Visual C ++ Express 2010 is also installed on another computer (Win7, 32 bit)
The browser looks like this
alt text

A program that compiles and runs on the first computer, on the second, a lot of errors fall out alt text

alt text

Why does this happen and what to do about it?

  • maybe due to the fact that it is prescribed in the project settings to compile with a 64bit compiler? in the case of a 64-bit system, the compiler does it easily. In the case of a 32 bit compiler, it tries to compile as a 32 bit code and a few ifdef cut out the necessary definitions. - KoVadim
  • And where can I change the project settings? I will try to do it. - Heidel
  • in the project settings. - KoVadim
  • stdafx.h and Stdafx.h are two different files ... rename Stdafx.h to stdafx.h - KoCaTKo
  • one
    Maybe the path in the project spelled absolute? On the second computer there is a file D:\C++\Training\ConsoleApplication1\ConsoleApplication1\stdafx.h ?? - atwice

0