简体   繁体   中英

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?

转到项目的属性页,找到链接器 - > 高级 - > 目标计算机选项,并确保将其设置为MachineX86

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM