Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 native C++ DLL x86 compilation

I have recently upgraded my toolset from Win 7 x86 / Visual Studio 2010 to Win 8 x64 / Visual Studio 2012. However, now my native C++ dll compiles as x64 rather than x86. I haven't done anything other than move the code to the new O/S and load it into VS2012.

Does anyone know how I can force it to compile for x86?

like image 244
user1763100 Avatar asked Oct 21 '12 13:10

user1763100


2 Answers

Go to your project's property pages, find the Linker -> Advanced -> Target Machine option, and make sure it is set to MachineX86.

like image 70
Archimaredes Avatar answered Nov 15 '22 06:11

Archimaredes


Go to Build--> Configuration Manager --> Active Solution Platform and change it to x86.

You can also confirm your specific project Platform, by looking for the project name in the same window and the Platform that is applied to it.

like image 36
Desert Ice Avatar answered Nov 15 '22 06:11

Desert Ice