64bit

va_args and 64 bits

I'm the lead dev for Bitfighter, and am having problems porting the game to 64-bit Linux. This should be a relatively easy and common problem, but it has stumped a number of people and I have been able to find no good information about it. [[ The code compiles in 32-bit with gcc version 4.1.2, and others, and fails with several variant...

Visual Studio 2008 64-bit debugging strategy

We are moving to an all-64-bit development environment. Unfortunately VS 2008 and, more importantly, its built-in web server, run in 32-bit mode. When debugging code that references 64-bit assemblies - Oracle.DataAccess, for example - we experience the dreaded System.BadImageFormatException. Can anyone offer any strategies for debugging...

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

Installshield basic msi 64 bit setup access 32 bit registry, why?

in the basic msi project of InstallShield2009Premier, I set the General Information->Summary Information Stream->Template Summary = x64;1033 to make the setup 64 bit. Now I want to set a vale to registry(by importing a registry), but it goes to HKLM\SOFTWARE\WOW6432Node\Microsoft rather than HKLM\SOFTWARE\Microsoft. How to access the 6...

Does 64-bit floating point numbers behave identically on all modern PCs?

I would like to know whether i can assume that same operations on same 64-bit floating point numbers gives exactly the same results on any modern PC and in most common programming languages? (C++, Java, C#, etc.). We can assume, that we are operating on numbers and result is also a number (no NaNs, INFs and so on). I know there are two ...

Issue with gethostbyname on 64-bit Windows

I am trying to migrate some code from 32-bit Windows (XP and Server 2003) to 64-bit Windows 7, and I am having a weird problem with gethostbyname. I'm doing something like this: struct hostent *hp; hp = gethostbyname( host ); After the call to gethostbyname, the pointer hp->h_addr_list is invalid. It has all the right numbers, but i...

Process sizes and differences in behaviour on 32bit vs. 64bit Windows versions

I am investigating a strange problem with my application, where the behaviour is different on 2 versions of Windows: Windows XP (32-bit) Windows Server 2008 (64-bit) My findings are as follows. Windows XP (32-bit) When running my test scenario, the XML parser fails at a certain point during the parsing of a very large configuration...

What's the max file mapping size in 64bits machine

Hi all, I'm new to 64-bits architecture. Could you tell me what's MAX file size supported by file mapping in 64 bits linux machine. I want to open more than 20GB files by file mapping, is it available? Thanks Thanks for your replies. Now I write a sample code. But it causes Bus Error when I get the value of the pointer in GBSIZE off...

Excel4 API call with Office 2010 64-bit

Hello, I try to convert an existing 32-bit XLL to a 64-bit version in order to run under Excel 2010 64-bit. But when I try to run it under Excel it crashes Excel. It crashes when I do a Excel4(xlfRegister, result, 7, x0, x1, x2, x3, x4, x5, x6); with XLOPER parameter (not XLOPER12). Do you know if I can still use Excel4 in 64-bit ? If i...

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

sifr 3 not working in IE 8 64bit (windows 7)

hi all... love sifr - use it all the time... but i've noticed that it does not replace text in IE 8 64bit version... works fine in regular IE 8 on windows 7, but not the 64bit version... for a test, anyone viewing this on a 64bit windows machine please take a look at the demo itself in IE 64bit: http://dev.novemberborn.net/sifr3/svn/t...

How to optimize .NET applications to 64-bit?

In Visual Studio > Build > Configuration Manager you can choose the target platform. What does it change? Is there any other way I can optimize my .NET app when targeting x64 platforms? ...

Singleton Implementation Works Fine on 32-bit but not 64-bit

I'm working on an application with a shared object that is accessed via a singleton. It's working fine on 32-bit however on 64-bit it doesn't appear to be locking properly. In the constructor for my object I have code that checks for some config reg keys and prompts the user if they don't exist. On 32 bit I see the prompt only once as ex...

Clipboard Copy-Paste doesn't work in a service on Win Server 2008/Vista 64bit

Update: This issue has been resolved. you can read about the solution in here: http://stackoverflow.com/questions/2237696/creating-a-process-in-a-non-zero-session-from-a-service-in-windows-2008-server Thanks everyone! Hi, I am trying to use Clipboard API (in Delphi) to extract images from Word documents. my code works OK in Windows...

Clipboard Copy-Paste doesn't work on Win Server 2008/Vista 64bit

Hi, I am trying to use Clipboard API (in Delphi) to extract images from Word documents. my code works OK in Windows XP/2003 but in windows 2008 64 bit it doesn't work. in win 2008 i get an error saying that Clipboard.Formats is empty and doesn't contain any format. The image seems to be copied to the Clipboard (i can see it in the clip...

CLR assembly will not load in 64 bit SQL Server 2005

We use an assembly with some user defined functions in our installation of SQL Server 2005 (32 bit). We deploy this to production with a script like this: CREATE ASSEMBLY [Ourfunctions] AUTHORIZATION [dbo] FROM 0x4D5A9000...000 WITH PERMISSION_SET = SAFE GO CREATE FUNCTION [dbo].[GLOBAL_FormatString](@input [nvarchar](4000)) RETURNS [nv...

Create 64 bit registry key (non-WOW64) from a 32 bit application

I have a Visual Studio installer that is creating some registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\MyApp but the registry keys it is creating are automatically appearing under Wow6432Node: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyApp How do I ignore the Wow6432Node when creating registry keys in my C# code being executed by the msi...

Which version of Windows 7 should I install on my development PC?

I am a .net and java deloper. I have an MSDN subscription with access to all editions of the Windows 7 operating system. I am going with a 64 bit installation. Which edition of Windows 7 should I install on my development PC: Professional, Ultimate, Enterprise, Enterprise N, etc.? Thanks in advance. ...

Detect 64bit OS (windows) in Python

Does anyone know how I would go about detected what bit version Windows is under Python. I need to know this as a way of using the right folder for Program Files. Many thanks ...

TAPI App on 64bits OS

I have a TAPI Application (Delphi 2007) working on 32bits OSs (XP, Vista, Win7). The TAPI server is 32bits Windows 2003 SP2. While TAPI APP is running on 64bits OS, I can connect to the line but i cannot get TAPI messages on my App. I can see messages have arrived on machine through Tracing tapisrv but the WaitForSingleObjectEx to the ...