32bit-64bit

How should I handle "cast from ‘void*’ to ‘int’ loses precision" when compiling 32-bit code on 64-bit machine?

I have a package that compiles and works fine on a 32-bit machine. I am now trying to get it to compile on a 64-bit machine and find the following error- error: cast from ‘void*’ to ‘int’ loses precision Is there a compiler flag to suppress these errors? or do I have to manually edit these files to avoid these casts? ...

ODBC Proxy for remotely accessing legacy resources?

Our project uses AcuCorp's AcuODBC driver to access a legacy Vision database. The problem is that we only have a 32-bit driver and the installer simply won't run on our 64-bit servers. I need a way to use SSIS to pull data from that system. As far as I can tell, there are 3 options: Set up a whole new SQL Server instance with SSIS a...

Testing Software on Windows 7. Install vs Virtualization

Hello We want to test a software we develop on XP on Windows 7. We have Vista installed on a PC. But we would like to avoid installing Windows 7 and rather run it in a Virtual PC or VMWare. Questions: Q1: Is it possible to run Windows 7 in a Virtual PC or Ware ? Q2: Is it possible to run a 64 bit Vista or Windows 7 in Virtual PC or V...

Dealing with 32-bit code on Snow Leopard 64-bit?

I would like to create an XPCOM plugin for a XULRunner application that I'm building. Since Mozilla only provides a 32-bit build of the XULRunner SDK I have to link with 32-bit libraries. This means that a lot of libraries need to be built by me. Relating this I have a few questions: Can I do a sudo make install for a 32-bit build? Or ...

Implicit int size indication or explicit?

Currently my application is 32-bit. This means that all tables running on SQL Server 2008 IDs' are INT that is equal to System.Int32 and everywhere where I parse strings to integers, I use Int32.TryParse(). I called this Implicit int size indication. If I will want to make my application to be 64-bit I think there will be 2 scenarios:...

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...

How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

When I run the following from a bash shell on my Mac: $ file /usr/bin/python I get the following three lines: /usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/python (for architecture i386): Mach-O executable i386 /usr/bin/python (for architecture ppc7400): Mach-O executable ppc this would see...

Linking 64bit DLL to Visual Basic 6

I'm working on a project that is using a DLL written in C that has both 32bit and 64bit compiles of the DLL for multiple reasons. The main application is written in Visual Basic 6. The component that brings in the functionality of the C DLL is a class within Visual Basic 6 that contains a module full of Public Declare Functions to the DL...

Unit Tests on a 32bit/64bit Application

We have an application that now has a 64 bit target, as well as the old 32 bit target. My question concerns our Unit Tests. Should we compile and run our Unit Tests in both as well? Is there any chance we will find flaws this way? Am I being overly paranoid? ...

Is it safe to use sys.platform=='win32' check on 64-bit Python?

The usual check to differentiate between running Python-application on Windows and on other OSes (Linux typically) is to use conditional: if sys.platform == 'win32': ... But I wonder is it safe to use today when 64-bit Python is more widely used in last years? Does 32 really means 32-bit, or basically it refers to Win32 API? If t...

32 bit ActiveX Control in a 64 bit .NET App

I'm creating a C#.Net application which I want to be able to compile for "All CPUs". I also want to include a specific ActiveX control in the UI of this app, but the ActiveX control I'm trying to use does not support 32 bit. Is there some trick or work around I can use to use get this control to work? What about embedding the ActiveX c...

How to build a C# MVC app with a 32-bit assembly to run on x64 Server 2008

We have a MVC application that depends on a number of 3rd party products (e.g., Crystal, Topaz). The Topaz signature device only has 32-bit .dlls available. So I'm assume that I need to build and deploy the app on IIS 7 in an a 32-bit App Pool. If that assumption is correct, then do I need to build the MVC app with the VS2008 compil...

Even after running Regsvr32, I get aximp error

Hi guys, I have a 32-bit ActiveX control written in C++. When trying to import it to .Net app using aximp on a 64 bit machine, it gives AxImp Error: Did not find a registered ActiveX control in 'xxx.dll'. I get the same error even after running regsvr32 on that control. There is another 32-bit ActiveX control written in C++ on which A...

A single executable for 32 and 64 bit (Without WOW64)

I'm writing a small utility that should run on both 16\32\64 bit systems. My old utility ran both on 32 and 16 bit by compressing the 16bit version to the 32 bit and applying the /stub switch in visual studio 2008 (/STUB -MS-DOS Stub File Name ). I'm looking for a way to do the same with my 64 bit executable. The target 64bit system is ...

Why is there no improvement in CPU usage with our 64-bit build of Apache?

G'day, We have built a 64bit build of Apache 2.2.14 and deployed it across various Sun servers running Sol10. Server types used for testing are Sun T2000's (32GB memory), 5120's (8GB) and 5240's (16GB). For each of these we have noticed that there was no appreciable improvement in CPU usage and in fact the server is running slightly ho...

how can I get the ARM MULL instruction to produce its output in a uint64_t in gcc?

Hello, I would like to introduce some assembly code into a c99 codebase. I want to use the UMULL instruction from the ARM CPU to multiply 2 uint32_t and get the result immediately into a uint64_t. Now a uint64_t needs 2 registers, so how do I specify the output and the constraints of the asm block? ...

Detect whether Office 2010 is 32bit or 64bit via the registry

Now that Office 2010 also comes in a 64bit install, where in the registry do you find out if the version of Office installed is 32bit or 64bit? ...

Will a program complied in 64-bit work on 32-bit machine?

As title said, I have C program complied and created a binary in 64-bit machine.Will this binary work under 32-bit ? ...

How to add n bytes in 64 bit system

Hi, I am working in 64 bit x_86 64 bit OSX system. I am reading the file of legacy database. It is loaded to a memory block and using offsets it read to the structures. It is written in 32 bit mode. So in order to read properly in 64 bit mode, I want to add n bytes to the base address of a structure. Since pointer incement increment...

Points to be considered for writing code which is portable to both 32 and 64 bit architectures

What are the points that should be kept in mind while writing code that should be portable on both 32 bit and 64 bit machines? Thinking more on this, I feel if you can add your experience interms of issues faced, that would help. Adding further on this, I once faced a problem due to a missing prototype for a function which was returnin...