PDA

View Full Version : سوال: تعیین بیت برنامه



behnam.m
چهارشنبه 12 آبان 1389, 15:23 عصر
سلام
برنامه که من می نویسم چگونه باید تعیین کنم که 64 بیتی باشد یا 32 بیتی لطفا کامل توضیح دهید ؟؟؟
ممنون

محسن شامحمدی
چهارشنبه 12 آبان 1389, 17:18 عصر
Hi,

A 32bit exe can only load 32bit dlls, and 64bit exe can only load 64bit dlls; 32bit process will run under Wow64 mode on 64bit OS.

If we compile an .NET executable (exe) as AnyCPU:
* On 32bit OS, the executable run as 32bit process.
* On 64bit OS, the executable run as 64bit process.

If we compile an .NET assembly (dll) as AnyCPU, the assembly can be loaded by both 32bit and 64bit process.

We may build the C#‎ exe as AnyCPU, and then generate two install packages:
* one for 32bit, contains the exe file and the 32bit SMO assembly.
* one for 64bit, contains the exe file and the 64bit SMO assembly..


معنیش که خیلی واضح بود
یعنی اگر برنامه خود را در حالت anycpu کامپایل کنید. در سیستم 32 بیتی با قدرت 32 بیت و

در سیستم 64 بیتی با قدرت 64 بیت اجرا می شود .
این قضیه یکی از فناوری های پیشرفته دات نت است.


حالا بازم اگر مصمم به تغییر این اعداد و ارقام هستی این صفحه که آموزش خود مایکروسافته رو ببین (http://msdn.microsoft.com/en-us/library/ms185328.aspx)