In Visual Studio, how to build an application for 64-bit machines?

I need to create an application for a 64-bit platform in order to use some DLL built for 64-bit machines. I know how you can create each project separately for the target platform on a 64-bit platform. But when you have many projects in one Visual Studio solution, and some DLLs depend on others. How do you decide which projects should be created as x64 , x86 or Any CPU .

Thanks in advance.

+5
source share
6 answers

" ", , . 64-, 32- . , . 64- , , , 64- . , 32- , , , 32- .

" ", ,

x64, x64 ( , x64). , 64-

x86, 32- , buit x86.

x64- , 32- " ".

, , , 64- , 32- . .

+6

, DLL. x64, DLL x64, x64 Any CPU. , DLL x64, . Any CPU, 64 .

+3

, . , DLL . - (x86 amd64), . , , .

, , AnyCPU, - .

+2

. MSDN

64- Windows:

  • , /platform: x86 32- CLR, WOW64.
  • , /platform: anycpu 64- CLR.
  • DLL, /platform: anycpu CLR, , .

, x86 DLL 64- . x64- DLL , x86-DLL 32- (WOW64) - (IPC) 64- . .

+2

.NET Rocks, ,

+1

64- , 64-.

0

All Articles