x64

Installer question: "Program Files" or "Program Files (x86)"?

I am installing a .NET (C#) application that is 100% managed code. The installer (InnoSetup) always wants to install the application to the "Program Files (x86)" folder in Vista x64, which I'm assuming is because the installer itself is only 32bit. (please correct me if I am wrong) Here are my questions: Does being in the x86 folder af...

How does one build an x64 assembly program in OS X?

I'm trying to build Hello World in x64 assembly on my Leopard MacBook Pro. It assembles fine, but I get this error when I try to link it: ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) for inferred architecture x86_64 I loaded it with ld -o hello64 hello64.o -lc My assembler is Yasm. EDIT: As fa...

[Windows 64] Brackets in system path wrecking havoc with JRuby ?

Hi all, I have a Win 64 bit laptop with Netbeans 6.7rc3, and I'm setting up and the Rails app I'm using still uses Rails 2.1.2 => have to install another version of Rails. There seems to be no way to do this under Netbeans 6.7rc3 so I tried at the command line but it comes up with an error suggesting Jruby can't cope with brackets in...

Is it possible to use a 32-bit ODBC driver with a 64-bit application on windows?

I have a 64-bit application and an ODBC-driver which only comes in 32-bit-flavour. Is there any way to have the application connect to the datasource through the driver? I realize the short answer is NO, related to 64-bit applications not being able to load a 32-bit dll, but I am looking for a slightly longer and more positive answer. ...

Opening an Excel spread sheet in .NET on a x64 system

I can't open an Excel spread sheet with .NET on an x64 server using the following connection string "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + filePath + "; Extended Properties=Excel 8.0;" I get The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. I installed the 2007 Office System Driver: Data Conne...

Using Boost::asio in Winx64: I'm stuck, need to figure out how to build libboost_system_xxxx.lib for x64

Unlike this question: http://stackoverflow.com/questions/704294/linker-error-while-building-application-using-boost-asio-in-visual-studio-c-200 I need an x64 build of the lib files... I'm not even sure how to get started. I'm reading here: http://www.boost.org/doc/libs/1_39_0/more/getting_started/windows.html Or, more generally, how ...

Boost linker error: Unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)"

I'm just getting started with Boost for the first time, details: I'm using Visual Studio 2008 SP1 I'm doing an x64 Build I'm using boost::asio only (and any dependencies it has) My code now compiles, and I pointed my project at the boost libraries (after having built x64 libs) and got past simple issues, now I am facing a linker erro...

SSE2 option in Visual C++ (x64)

I've added x64 configuration to my C++ project to compile 64-bit version of my app. Everything looks fine, but compiler gives the following warning: `cl : Command line warning D9002 : ignoring unknown option '/arch:SSE2'` Is there SSE2 optimization really not available for 64-bit projects? ...

Installer only installs to root on x64 systems

My MSI installer created with Visual Studio 2008 refuses to install the app in the designated directory and instead will only install the app in the root directory. If I take the same MSI and install in on an x86 system the installer installs the app in the directory specified. I am developing the app and MSI on Server 2008 and Win7 RC...

Detect another process's bitness (in Windows)

How can I detect whether another process is running as 32/64 bit in Windows? I know how to do this for my own process, but not for a different process. A tip or solution in any language would be fine. Thanks! ...

Why does strlen() return a 64-bit integer? Am i missing something?

When compiling a 64bit application, why does strlen() return a 64-bit integer? Am i missing somthing? I understand that strlen() returns a size_t type, and by definition this shouldn’t change, but... Why would strlen need to return a 64-bit integer? The function is designed to be used with strings. With that said: Do programmers commo...

lc.exe has problems running from a service (CC.NET) in Vista x64

When running CC.NET as a service I get the following error: LC0004: Exception occurred creating type 'C1.Win.C1Command.C1CommandHolder, C1.Win.C1Command, Version=1.0.20044.97, Culture=neutral, PublicKeyToken=e808566f358766d8' System.TypeInitializationException: The type initializer for 'C1.Win.C1Command.12' threw an exception. ---> Syst...

Visual Studio 2008 Project Properties Build Configuration Missing Options

I have a strange problem, and hopefully someone can help me. I have a solution with 13 separate C# projects. I am using Vista x64 to develop on, and I would like to build these projects to target the x86 platform. This is normally quite easy. I can go to solution properties -> Configuration properties and change the platform to x86. The...

Can't test with NUnit on Vista 64bit

Hello, I encountered the problem while trying to run unit testing with NUnit 2.5 in Vista 64bit, MS Visual Studio 2008 SP1, Projects framework 3.5. I have 2 projects in solution, the first - main project and the second - project with tests. Both projects targeted "Any CPU" platform. In fact, I didn't changed anything concerning platform...

How to detect that a given PE file (exe or dll) is 64 bit or 32 bit

I need to detect whether a given .dll or .exe file is 32 bit or 64 bit At the moment I have only one solution: read the PE Header from the specified file and take the 'Machine' field from there. ( Specification: Microsoft Portable Executable and Common Object File Format Specification (.docx file) at section "3.3. COFF File Header (Obj...

Any way to allocate physical memory above 4GB on Vista x64?

I have a Vista x64 machine with 6GB of RAM, and I'm attempting to test that a device driver functions properly when doing DMA to physical addresses above 4GB. I've found the AllocationPreference registry key, which is supposed to "force allocations to allocate from higher addresses before lower addresses", but the page isn't clear wheth...

SQL Server 2008 database copy - file permissions

For SQL Server 2008 Developer Edition on Vista 64 bit: I tried copying a database using a Vista admin account using the attach/detach method and it failed due to a file permission error so I gave the user that sql services are running as write and modify to the directory. The copy didn't work. I then gave it full control. The copy wo...

How to reserve bottom 4GB VM in an x64 C++ app

Working on porting a 32bit Windows C++ app to 64 bit. Unfortunately, the code uses frequent casting in both directions between DWORD and pointer values. One of the ideas is to reserve the first 4GB of virtual process space as early as possible during process startup so that all subsequent calls to reserve memory will be from virtual add...

Any tools available for packing 32bit/64bit executables together?

I really like the way the SysInternals utilities (e.g. Process Explorer) handle 64bit compatibility. It looks like the 32bit executable has the 64bit version embedded in it, and extracts it if necessary. I'd like a tool which automates this - i.e. takes 32bit and 64bit executables, packs them together somehow, and inserts stub code to l...

Why does my VC 2005 x64 Debug session allways fail on first trial (but not on second trial)?

I have a large C++ application running in a Win32 and a x64 Version (using Windows XP x64). When debugging the x64 Version, after each code change the first debug session i start stops with Unhandled exception at 0x77ee5f3c in myapp.exe: 0xC0000005: Access violation writing location 0x0000000000030c90. The callstack shows endless rec...