64bit

.NET GDI bug between 32 and 64 bit?

I have a strange problem with a .NET application. I run the application (a Windows Forms app) on a 64 bit Windows 2008 Server. I run it remotely using Remote Desktop. My application does its own drawing ( i.e. g.DrawString("hello world"...) ) on the app. If I build the app with the Platform Target (in the Build tab of the application pr...

VC++ LNK2001: unresolved external symbol only when compiling on 64bit

I have made a dll that compiles fine in 32bit mode, but when compiling in 64bit mode (both on a 32bit box cross compiling and on a native 64bit box) I get the above error. The symbol that it is complaining about are the following: "struct return_info_ * __cdecl patch_file(char *,char *,char *)" I am new to C++ but I think I have defin...

build program and install software under Network File System for different machines

Hi, Although having a little experience, I am still confused with the question of whether it is necessary to install an application and/or build a C++ program or C++ library under Network File System shared by machines, which have different Linux version (e.g. CentOS release 4.7, Ubuntu 8.10), possibly different bit (e.g. 32-bit, 64-bit)...

SHGetSpecialFolderPath, how to access 64bit CSIDL from 32bit application

Is there a way from a 32bit application running on a 64bit system to have access to the default folders for 64bit applications? For example, using SHGetSpecialFolderPath with CSIDL_PROGRAM_FILES from a 32bit application returns "C:\Program Files (x86)' If the same call was used from a 64bit application, I would get "C:\Program Files"....

Will Visual Studio 2005, 2008 benefit from a 64 bit operating system?

Imagine the same hardware running Windows XP 32bit, or Windows XP 64bit.. (being that it's a 64bit processor currently running XP 32bit) 2gigs of ram... Will the performance of Visual Studio benefit from going to the 64bit OS? The hardware and ram is currently out of my control... If I could throw more hardware or ram at it I would. ...

Long to Object implicit converions broken?

I have this code: DateTime d = DateTime.Today; long l = d.ToBinary(); object o = (long)l; d = new DateTime((long)o); When I execute this code, I get an error on d = new Date..(the last line). It says the argument is out of range; that it is out of the range of max and min ticks. Which does seem probable, as using a debugger l is a hug...

Can AllocHGlobal allocate more the 2GB of memory?

I have resorted to using the Win32 API calls VirtualAlloc/VirtualFree to allocate and release memory blocks greater than 2GB in size. I should be able to use the AllocHGlobal function from the System.Runtime.InteropServices.Marshal class to do the same. However, the following code gives an arithmetic overflow exception (note the explic...

Setting dllimport programatically in c#

I am using DllImport in my solution. My problem is that I have two versions of the same DLL one built for 32 bit and another for 64 bit. They both expose the same functions with identical names and identical signatures. My problem is that I have to use two static methods which expose these and then at run time use IntPtr size to determi...

OPENQUERY on SQL Server 2005 64bit behaves weird

I just recently moved a SQL DB from SQL2005 32 bit --> 64 bit. I am having an issue connecting to Oracle using the OraOLEDB.Oracle Provider. I was able to install Oracle 10G Client , ODAC 64 bit. I was also able to add a linked server to the Oracle instance. I am able to run a query using the linked server name directly: SELECT top 1...

64 bit version of Java 1.4.2 for Windows?

Is there a 64 bit version of Java 1.4.2 for Windows? I need this because of a BEA WebLogic 8.1 application that runs out of memory all the time. UPDATE: As Tom Hawtin pointed out there are licensing problems with the Sun 64 bit version I suggested in my own answer. Just out of curiosity: If you know a version which is available under ...

Strange 64/32-bit GUID issue under IIS7

One of my team has recently come across an interesting glitch in the matrix. If anyone can help explain this it'd be great. It is possibly a complicated to explain, so bear with me. We are building an ASP.Net application. In it we have a simple "if" statement. Guid adminId = Guid.Empty; if (mRoles.Contains("Admin")) { adminId = mU...

Determine if an executable (or library) is 32 -or 64-bits (on Windows)

I am trying to find out if a given executable (or library) is compiled for 32-bits or 64-bits from Python. I am running Vista 64-bits and would like to determine if a certain application in a directory is compiled for 32-bits or 64-bits. Is there a simple way to do this using only the standard Python libraries (currently using 2.5.4)? ...

32bit 64bit compatible

Hello, I am developing an application that will run on 64 bit computers. However, we are using a library that has 32 bit integers that we cannot change. And we will need to compile and run on a 64 bit computer. What would the implications be when the application is running? Is there any work around? Many thanks for any advice, ...

Can i create 64-bit setup using pure InstallScript?

Can i create 64-bit setup.exe file using InstallScript project in InstallShield 2009? Documentation is only about msi projects. Or tell me alternative way to use 64-bit registry keys, please. ...

MSI Installer, 64 bit OS, write to \windows\system32\inetsrv folder

On Windows Server 2008 64-bit, I need an .msi installer file to write some files to \windows\system32\inetsrv folder. (The files are some XML Schema validation files, that C# XmlReaderSettings.Schema.Add() expects to be in that folder). When the installer runs, the files end up in \windows\SysWOW64\inetsrv folder, not where they need to...

programming for 64-bit asp.net

Given a .NET 3.5 programming and client-use environment with Windows Vista. What are the implications for programming for a 64 bit OS under the below circumstances? Please specify whether there are issues of functionality or optimization - i.e. will it work and can it be made to work better in 64-bit environment. 1) You are developing...

Does 64-bit Windows use KERNEL64?

I was looking at some libraries with dumpbin and I noticed that all the 64-bit versions were linked to KERNEL32. Is there no KERNEL64 on 64-bit Windows? If not, why? All my operating systems are 32-bit so I can't just look. A google search brings up nothing worthwhile so I suspect that there is no KERNEL64 but I'm still curious as to...

detect 64-bit CPU in Ruby on Mac OS X

I'm looking to differentiate between Core Solo/Duo and Core 2 Duo processors for 64-bit support. On a Core 2 Duo, then `sysctl hw.cpu64bit_capable` gives 1, as desired, but on a 32-bit processor, it throws an error, saying: second level name cpu64bit_capable in hw.cpu64bit_capable is invalid What's the best way to detect a 64-bit pro...

Strategies for porting Carbon code to Cocoa

I'm looking for strategies and articles on making Carbon code 64-bit ready. Carbon for 64-bit does not and will not exist. It's pretty much a dead end. So in order to bring Carbon application and toolkits to 64-bit their GUI part will have to be re-written in Cocoa and Objective-C, right? How can I minimize the effort I have to put in...

compiling 64 bit linux kernel with gcc

While trying to compile a 64 bit linux kernel using gcc, I see the following error : kernel/bounds.c:1: error: code model ‘kernel’ not supported in the 32 bit mode kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in This is what gcc -v reports : Using built-in specs. Target: i586-redhat-linux Configured with: ../conf...