Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Go Back  Xtreme Visual Basic Talk > > > Windows 7 & VS 32 and 64 bit


Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2009, 09:42 AM
jari_stockholm jari_stockholm is offline
Regular
 
Join Date: Nov 2002
Location: Stockholm/Sweden
Posts: 69
Default Windows 7 & VS 32 and 64 bit


Hi.

Windows 7 & visual studio express.
What Windows 7 version (32 or 64) to choose from a developer perspektive?
Maybe someone got answers to these questions

Windows 7 32 bit with installed Visualstudio express... now
1. Can you create visualbasic.net 64 application exe?

Windows 7 64bit with installed Visualstudio express. now
2. Can you create visualbasic.net 32 application exe?
3. Can you Execute .Exe files created with visualstudio net 32 bit?
Reply With Quote
  #2  
Old 10-24-2009, 11:54 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

VB.NET / C#.NET compiled programs as of .NET framework 2.0 are by default ("anycpu") bit-ness agnostic.

If the user is running a 64-bit OS and has the 64-bit CLR installed, the Framework 2.0 "anycpu" targeted program will run as a 64-bit process, otherwise it will run as a 32-bit process.

..however, the DEPENDENCIES that these programs have are usually NOT bit-ness agnostic. A program running in 32-bit mode can't use a native 64-bit DLL, and a program running in 64-bit mode can't use a native 32-bit DLL...

..so in practice you have to make separate builds for both 32-bit and 64-bit respectively for any non-trivial project that relies on 3rd party DLL's. For the most part, all standard microsoft DLL's come in both flavors (the 64-bit OS will switch between them automatically via its "WOW64" translation layer.)

Edited to add:

VS.NET compiled programs can be restricted to specific environments via the /platform command-line switch.. valid options are "anycpu", "x86", "x64", and "itanium". An "x86" compiled program will run in a 32-bit process even if all the requirements for a 64-bit process are met. In this way, you can make a single build for "everybody" in those cases where your dependencies are restricted to 32-bit.

Last edited by Rockoon; 10-24-2009 at 12:03 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
 
Windows 7 & VS 32 and 64 bit
Windows 7 & VS 32 and 64 bit
 
-->