64bit

Why will this run in 32bit, but not 64bit? (x86 vs x64 in compiler options)

I'm using the following code to iterate through and find windows containing specific strings in their title bars. I have two projects containing this identical information, yet for some reason - it works when targeted to x64, but FindWindowLike returns 0 always on x86. I need this to run in x86. I am developing this on Windows 7 x64, bu...

SetEnvironmentVariable within 32bit Process on 64 bit Windows OS

I recently found an interesting issue. When using SetEnvironmentVariable, I can use Process Explorer to get the newly created environment variable. However when the process itself is 32 bit and the OS as 64 bit, Process Explorer (at least v10 ~ the latest v11.33) cannot find the new variables. If the program is native 64 bit then everyth...

Using ADO 3.5 to Import Data From Excel into 64-bit Application

Hi, I am currently developing a 64-bit C# application that needs to import its data from an Excel spreadsheet. I have heard that the best way to do this is by using ADO data connections. However, I have read (and experienced) that in order to make this work, I must be writing a 32-bit application as there is no OleDb odbc driver for ...

How Do I Run IntelliJ IDEA 9 as a 64-bit Process?

I've noticed that IntelliJ IDEA 9 runs as a 32-bit process in Windows 2003 x64 and would like to configure it to run as a 64-bit process. I did find an article about how to perform this in Mac OSX, but not in Windows. Update #1: I have the 64-bit version of JDK 1.6.18 installed. ...

Why does ActivePerl 64-bit crash when I call sqlplus from backticks?

We came upon an error with a Perl script that processes data into an Oracle database. A few details: Server: Windows Server 2003 R2 64-bit Oracle: 10.2.0.4 Perl: ActivePerl 5.10 64-bit, build 1005 So the perl script connects to an Oracle database, and runs SQL to load data from another database. It runs the SQL through a sqlplus co...

porting from 32 bit to 64 bit

I have windows application build using Visual C++. Its being build and run on 32 bit windows env. Now I need to make sure it works on windows vista / 7 64 bit env. What all things I need to consider for this porting process ?? ...

Problem using oracle.dataaccess.dll

Hi, I have an web application which uses Oracle.DataAccess.dll to communicate with and Oracle db. The web application deployed on 32 bit windows system works but not on windows server 2008 64 bit. I installed 10204_vista_win2k8_x64_production_db package, referenced the installed dll (version 2.102.4.0) from the project but I get the fol...

"Bad binary signature" in ASP.NET MVC application

We are getting the error above on some pages of an ASP.NET MVC application when it is deployed to a 64 bit Windows 2008 server box. It works fine on our development machines, though these are 32 bit XP. Just wondered if anyone had encountered this before, and has any suggestions? Details as follows: Bad binary signature. (Exception f...

QtScript: crash on 64-bit windows.

I have compiled Qt for 64-bit architecture under windows and all works fine except QtScript. The following simple code, working perfectly with 32-bit Qt for windows installed from qtsoftware.com, crashes if compiled with 64-bit Qt . Maybe it's an error in my code? Or Qt is not compatible with 64-bit? Or something else? Any comments are w...

Error when starting GLUT app when compiled for 64 bit

I have the bare bones of a GLUT app. When I compile it for Win32 it works fine, but if I compile it for x64 I get this error: The application was unable to start correctly (0xc000007b). Click OK to close the application. I have glut64.lib as an input for the Linker, which comes from the nVidia CUDA sdk at "C:\ProgramData\NVIDIA Corp...

Credential manager for Vista/Windows 7

I have Credential manager implemented in VC++ which captures credentials during login process. It works well in XP/Vista/Windows 7 32 bit env. But is not working in 64 bit. Any idea ? Thanks in advance for any help ...

c raw sockets and 64 bit issue.

Hi everybody. I'm still struggling to get my sample code working on a 64 bit machine. My previous problem was solved because of missing/outdated headers/libraries. I compile this code as follow: gcc -Wall -g -o server server.c and gcc -Wall -g -o client client.c I run them on 2 linux machines(both 32bit) and it works fine. When I recom...

Strange performance behaviour for 64 bit modulo operation

The last three of these method calls take approx. double the time than the first four. The only difference is that their arguments doesn't fit in integer anymore. But should this matter? The parameter is declared to be long, so it should use long for calculation anyway. Does the modulo operation use another algorithm for numbers>maxint...

How do I set 64-bit alignment for gcc from the command line?

In the man page I only found 8, 16 and 32 bits. ...

How to debug with Visual C++ 6 on Windows 7 x64?

Surely the answer will be "you can't" or "use XP mode", but I'd like to know if it it possible. The issue I have is that whenever I debug some application and hit a breakpoint, when I stop the debugger the debuggee remains stuck. It can't be killed, I can't attach another debugger (it says it is already being debugged). It won't go away...

How to build 64-bit Python on OS X 10.6 -- ONLY 64 bit, no Universal nonsense

I just want to build this on my development machine -- the binary install from Python.org is still 32 bits and installing extensions (MySQLdb, for example) is driving me nuts with trying to figure out the proper flags for each and every extension. Clarification: I did NOT replace the system Python, I just installed the Python.org binary...

Shell extension installation not recognized by Windows 7 64-bit shell

I have a Copy Hook Handler shell extension that I'm trying to install on Windows 7 64-bit. The shell extension DLL is compiled in two separate versions for 32-bit and 64-bit Windows. The DLL implements DLLRegisterServer which adds the necessary registry entries. After adding the registry entries, it calls the following line of code to...

VC2005 SP1 Redistributable x64 support on Windows 7

Any idea if Visual C++ 2005 Redistributable package (x64) is supported on Windows 7 (64 bit) ? I was able to get to this page : http://www.microsoft.com/downloads/details.aspx?familyid=EB4EBE2D-33C0-4A47-9DD4-B9A6D7BD44DA&displaylang=en but the supported operating systems does not include Windows 7. Also the same question on 32 bit ...

32bit binaries on sharepoint 64bit, An attempt was made to load a program with an incorrect format.

I have a lot of sharepoint web parts etc all of which are compiled for any cpu, they run fine on 32bit sharepoint but moving to server 2008 in 64bit causes the following error: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) From my reading they should all work fine? ...

Compile for 64bit or 32bit platforms in visual studio, depending on the host Operating system?

On a project we are working on there is an SQLite.DLL file that we are linking which we need to link the correct version (32 or 64 bit) depending on the host operating system. If we link to the 32 bit version it will not run on a 64 bit system, and vice versa. Thus, how can we create a configuration that will cause the system to build th...