x64

Form hangs up - VB.NET 2008 (on 64 bits Vista)

Hi: I have detected a problem running my application under Vista 64 bits OS. My application is developed using VB.NT 2008 and compiled as x86 I have a main form. In this form there is an option to open other form. TThis second form must return a few values to the main form. When the user click on this 2nd form, to return values, this...

Unexplained stack allocation in native C code built for x64 under Visual Studio 2010.

I am trying to use CL 16.0 for x64 (VS 2010) to produce some readable 64-bit ASM code for an example, but CL insists on preallocating a ton of stack space (28h bytes), with the following line: sub rsp, 40 ; 00000028H (actual value depends on number of local vars of course) Question is, how can I disable this behavior? It is difficult...

fftw3 on windows 64-bit

I would like to use FFTW3 on Windows-64 bit. I follow the instructions on FFTW website: download the package, unzip, run lib.exe to create .lib "import libraries". After doing so, I build my application (which runs just fine using FFTW3 dlls 32-bit) and I get the following errors: 1>pyramidTransform.obj : error LNK2019: unresolved...

PDF convert with ImageMagick and Ghostscript on Windows Vista/7 x64

Hello all, I've just spent the last three hours getting ImageMagick to play nicely with PHP for a PDF to JPG convert. Instead of documenting it myself locally, I figured I'd write it up here, with all the buzzwords and things I screwed up, so the next noob can save some time. Tested on two OSs,Windows 7 x64 and Vista x64, with PHP 5....

Will a c# "int" ever be 64 bits?

Possible Duplicate: Assuming 32bit ints Given the following c# code, int testInt = 0; Int64 testInt64 = 0; Console.WriteLine("Size of IntPtr: {0}; testInt: {1}; testInt64: {2}", IntPtr.Size, sizeof(int), sizeof(Int64)); On a 64 bit machine I get the following output: Size of IntPtr: 8; testInt: 4; testInt64: 8 Will sizeof...

How to modify contents / replace a binary of an .msi file as a post-build step?

When building a Visual Studio 2010 Setup project with a CustomAction on x64 systems, Visual Studio includes the wrong version of InstallUtilLib.dll: It installs the 32bit shim, which will not work for CustomActions compiled as 64-bit (a requirement in my case, since it depends on 64-bit native dlls). Installing such a .msi results in th...

How to register a 64-bit DLL

Hi all, I want to register a 64-bit DLL on a 64-bit OS, (specifically Windows PE). I am not sure if I can use regsvr32.exe because of the limitations of Win PE (additionally, I think it will not work since regsvr32 is for 32-bit dlls). I need the DLL in order to run a program since the program does not run if the dll is not registered....

x64 Visual Studio 2008 -- inputting huge array

I want to write a console application in Visual Studio 2008 that inputs a 3.5 GB array (file), and just adds one to each element of the array. I have it configured for release and x64. I set up a project using the CLR console application project type. I running on Vista and have 8 GB of memory. When I run the program, it is giving me ...

C++ link error on Visual Studio 2010 x64

I'm upgrading a C++ code base from VS2005 to VS2010 and I'm rebuilding some third party C++ dependencies. I have no problem building these 32-bit but keep running into problems linking 64-bit (x64). I'm getting unresolved externals for a number of standard library functions. For example: error LNK2001: unresolved external symbol "__decl...

C# Interop to WaveOut Functions on X64

We have some services that need to use sound output functionality. SoundPlayer won't play sounds while the application is running as a service on Windows 7. It will on Server 2003. Don't ask me why. This may have been deliberate on somebody's part at Microsoft, but ... So, we thought we'd use interop to the waveOut functions. That ...

Is there a transparent way to force 64-bit gcc compilation on Solaris

Is there a way to force '-m64' not overriding CXXFLAGS/CFLAGS. I want automatic x64 build environment like in Linux/BSD amd64. Why do I need this? The problem is complexity of the project I need to be buit as x64 on Solaris. It contains several parts and each may use specific C/C++ compiler flags. So, I can't just run: CXXFLAGS=-m64 ...

Compiling for windows 64bit target, issues with static .libs

Hi, I'm using MS Visual Studio 2008 professional edition on windows 7 64bit. I installed the 64 bit compilers along with the standard 32bit ones. I have used http://argtable.sourceforge.net/ for windows 32bit programs before I have no problems building my application (Which is just written in plain and simple C89) to use argtable2.lib ...

x64 ODBC drivers

I'm looking for x64 ODBC drivers (specifically Acces and Excel), so that i can test my code on more than just SQL. Do any exist yet, and if so where can i get them? Thanks ...

How to Inherit from WebBrowser control in x64? Designer Error

I'm having an issue with an application made in Visual Studio 2k5, and we're taking it to 2k8 and 64-bit compilation. It compiles fine, and works fine, but the designer doesn't like us. Whenever I try and start the designer up on the main form of the application, I get this error: Could not find type 'MyNameSpace.MyWebInherited'. Plea...

How do I create an x64 platform solution in visual studio when the configuration manager does not list x64 as an option?

I am currently converting some visual studio solutions from Win32 to x64 and I am unable to find the x64 option in configuration manager for some solution files. Other solutions list x64 and work as expected. The output for each of these solutions is a windows dll files. Is there a reason why Visual Studio will provide x64 as an option ...

Configuring 64-bit compilation inside Visual Studio 2008 Express Edition (VS2008EE)

I am making an attempt at building 64-bit native C++ applications under Visual Studio 2008 Express Edition Service Pack 1 (with some relevant Windows SDK(s) installed afterwards), in the IDE and from the command line. This is on a Windows XP Professional x64 Edition Version 2003 Service Pack 2 machine. I know that the Professional ver...

Installing different version of assembly based on platform?

I'm creating a setup program in VS2008 for a C# application that uses SQLite, which requires different versions of the assembly for x86 and x64 environments. What is the best way to have the setup program automatically install the correct assembly based on the environment? ...

How do I force Visual Studio 2010 and Team Build 2008 to use 64-bit version of SGEN tool?

(renamed from "Why does my c# project build successfully under Debug/x64, but fail under Release|x64?") Here's my problem... One of the projects in my solution builds just fine under Debug|x64, but when I switch to Release|x64, my build fails (both locally and on my CI build server) with the following error: An attempt was made to l...

Operator precedence for "<<" and "++" in VS2008 with optimization

I'm stuck with a weird VS2008 C++ issue, that looks like operator precedence is not respected. My question is what is the output of this: int i = 0; std::cout << ((i != 0) ? "Not zero " : "zero ") << ++i << std::endl; Normally the ++ has precedence over the <<, right? Or is the << considered like a function call giving it a hi...

In C#, how can I know programmatically if the Operating system is x64 or x86

Hi All, In C#, how can I know programmatically if the Operating system is x64 or x86 I found this API method on the internet, but it doesn't work [DllImport("kernel32.dll")] public static extern bool IsWow64Process(System.IntPtr hProcess, out bool lpSystemInfo); public static bool IsWow64Process1 { get { bool retVal = fa...