Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's the relation of "win32 project" name in visual studio to x86 or x64 platform

Tags:

I'm using Visual Studio for c++ programming, and after working and writing programs in x86 environment (32bit Mode) I tried to build my x86 project in x64 environment so I thought that I should create a win64 console project instead of win32 console project but there were not such as an option in VC2010 . so I want to ask that for building x64 projects I should also choose win32 project and change the settings for compiling in x64 inside the project using instruction in here?

I'm using windows 7 64bit.

if your answer is yes then why it is called win32?

like image 386
PsP Avatar asked Jul 11 '13 19:07

PsP


People also ask

Is Win32 the same as x86?

Yes. In this context x86 is synonymous with Win32.

Is Win32 defined for x64?

The symbol _WIN32 is defined by the compiler to indicate that this is a (32bit) Windows compilation. Unfortunately, for historical reasons, it is also defined for 64-bit compilation.

What is the difference between Win32 and x64?

The biggest difference between 32-bit and 64-bit OSes is that the 32-bit version can only address a bit less than 4GB of memory, in total, for the entire system, and this includes the memory in your video card. For Windows it's usually about 3.5GB total.

Is Win32 32-bit or 64-bit?

(2) Win32 is the programming interface (API) for 32-bit and 64-bit Windows operating systems. Starting with Windows 95, developers write applications that call the routines in the Win32 API.


1 Answers

  • "Win32" is the name of the OS API.
  • "Win32 Console Application" got its name from the API (not from bit-ness).

Win32 API can be used both by 32-bit and by 64-bit applications. So, a Win32 Console Application can be built both for 32-bit and for 64-bit. For the latter, create the "x64" configuration in the Configuration Manager.

like image 185
Branko Dimitrijevic Avatar answered Sep 21 '22 06:09

Branko Dimitrijevic