64bit

How to get Program Files folder path (not Program Files (x86)) from 32bit WOW process?

I need to get the path to the native (rather than the WOW) program files directory from a 32bit WOW process. When I pass CSIDL_PROGRAM_FILES (or CSIDL_PROGRAM_FILESX86) into SHGetSpecialFolderPath it returns the WOW (Program Files (x86)) folder path. I'd prefer to avoid using an environment variable if possible. I want to compare some...

Why do .NET developers offer 32-bit/64-bit versions of .NET assemblies?

Evey now and then I see both x86 and x64 versions of a .NET assembly. Consider the following web part for SharePoint. Why wouldn't the developer just offer a single version and have let the JIT compiler sort out the rest? When I see these kinds offering is it just that the developer decided to create a native image using a tool like ngen...

32 bit versus 64 bit machine for software development question

I am pricing a new software development machine and looking at the dell precision series. When I get to this screen: http://www.dell.com/content/topics/reftopic.aspx/pub/products/precn_kat?c=us&cs=555&l=en&s=biz&~section=T7400 The first choice is: Buy a Precision WorkStation T7400 32bit Now! and the second choice is: B...

OpenAs_RunDLL in Vista

This isn't strictly a programming question, but hopefully someone here has the knowledge to help me. Running Vista x64, the "Open File With" dialog takes forever to appear when trying to open a file with unknown type. To be specific, the prompt giving the choice between "Use the web service to find the correct program" and "Select a pr...

XML-RPC: best options for 64 bit ints?

XML-RPC unfortunately doesn't support 64-bit ints in the official standard. It seems there are several extensions that add this support. Do any of them seem to be more popular or better supported? Which extension do you use? Answers for all languages appreciated. ...

PostgreSQL recompile needed after upgrading to a quad-core CPU?

I recently upgraded my server running CentOS 5.0 to a quad-core CPU from a dual-core CPU. Do I need a recompile to make use of the added cores? PostgreSQL was installed by compiling from source. EDIT: The upgrade was from an Intel Xeon 5130 to an Intel Xeon 5345. ...

Vista 64-bit Development Caveats

I'm migrating my development workstation from 32-bit Vista to 64-bit Vista. The production platform is 32-bit Windows Server and SQL Server 2008. Does anyone know of any issues with migrating the code base? EDIT: the system consists of web forms, c# code, stored procedures. there is also ajax.net, ssrs, ssis, and dynamic reports/...

Using 64 bits integers without C runtime - link error __alldiv

I am trying to build a windows console application without using the C runtime (msvcrt or libcmt). That is to link just against kernel32.lib and use console functions from WIN32 API instead of printf and such. My problem is that during link the compiler fails to find __alldiv which seems to handle 64 bit integer divides in 32 bits appli...

Virtual address space in 64 bit systems running in compatibility mode.

I saw that on a 64 bit windows OS the user virtual address space available is 8 terra bytes. But if the program we are executing on this is running in 32 bit compatibility mode is this much of user space still available ? or does it behave like a normal 32 bit OS and gives only 2GB user address space? ...

Why does Java Web Start not work with 64-bit Java environments?

Java Web Start does not come with 64-bit builds of the JDK. Why is this? What is lacking that keeps it from building and working? ...

Why can't my program find its DLLs on Vista 64?

I recently got a new laptop. Unfortunately, it came with Vista. It's been one big hassle getting it to work, and the comp has hardware components for which there are no XP drivers, so I can't "upgrade" to an OS that actually works. I've mostly gotten things working, but one particularly odd problem has me stumped. I installed Delphi and...

How can I test a windows dll to determine if it is 32bit or 64bit?

I'd like to write a test script or program that asserts that all dlls in a given directory are of a particular build type. I would use this as a sanity check at the end of a build process on an sdk to make sure that the 64bit version hasn't somehow got some 32bit dlls in it and vice versa. Is there an easy way to look at a dll file and...

How can compiling my application for 64-bit make it faster or better?

I use C#, .NET, VS.NET 2008. Besides being able to address more memory, what are the advantages to compiling my application to 64-bit? Is it going to be faster or smaller? Why? Does it make it more compatible with a x64 system (when compared to a 32-bit application)? ...

What are the pros and cons of running IIS as 32bit vs 64bit on a 64bit OS?

Possibly better suited for "Rack Overflow", but from a developer's point of view, what are the advantages and disadvantages of running IIS (serving both legacy classic ASP and .NET) as a 32bit process instead of a 64bit process on a 64bit windows host? The main advantage of 32/64 (iis/server) over 32/32 seems to be the ability to go up...

How to allow 32 bit apps on 64 bit windows to execute 64 bit apps provided in Windows\System32

Say you have an app, that you want to provide users ability to browse the system32 directory and execute programs in (like telnet). What is the best method for supporting this when you need to support XP onwards as a client and 2k onwards for server? Having written all this up I wonder if it's just too much time/effort in providing a b...

Producing 64-bit builds on Windows with free software

Hi, I have a C++ project that I've been developing in Microsoft Visual C++ 2008 Express Edition. It has come to the point that I'd like to port to 64-bit and continue development. What is the best way to do this using free software? My thoughts so far: The Express Edition of MSVC doesn't come with 64-bit compilers, so I can install...

32-bit Build Server and 64-bit Production Server for .NET Web Apps

Our workstations are running 64-bit Vista, and the production servers for our ASP.NET MVC web apps are 64-bit Server 2008 servers. However, our build server running TeamCity is a Server 2008 32-bit server. We will taking these builds and deploying them on the 64-bit production servers. The applications are written all in C#. Should I...

Is it possible to use boost library in visual studio 2008 64 bit version?

I tried to use boost library in 64 bit mode of VS2008 but I'm getting "header file not found" errors. is it any possible to use boost library under 64 bit mode of VS2008? it worked fine in 32 bit mode. that's why I'm suspicuous bout 64 but ;( Or anybody have good link to show setting up 64 bit mode to use boost? thanks ...

Switch to 64 bit or stay at 32 bit?

I have a small office, and I currently use a Visual Foxpro Application that I wrote to handle all the data. It is time to buy a new server. It seems that there are problems with VFP and 64 bit operating system. Should I make the move to 64 bit and try to deal with the problems that arise, or buy a new server running the older 32 bit...

.NET Optimized Int32

While reading through the 70-536 training kit, it states: The runtime optimizes the performance of 32-bit integer types (Int32), so use those types for counters and other frequently accessed integral variables. Does this only apply in a 32 bit environment? Does Int64 take over in a 64 bit environment, or is Int32 still th...