64bit

Why is it so hard to make 64-bit versions of software?

What are all the aspects must be taken into account when designing your software into 64-bit environment, and why wouldn't the same code work as 32-bit and 64-bit (when talking about applications)? Drivers obviously are a different beast, missing 64-bit drivers are infamous problem for almost all hardware. What's so different in that do...

C++/CLI 64-bit COM

I have a C++/CLI assembly that wraps a native 32-bit dll. The assembly is used both from .Net and COM (office). Now I have a customer that runs 64-bit office. Is it possible to create a C++/CLI assembly that uses a native 32-bit dll and exports a 64-bit com interface? ...

How to do bitwise AND in javascript on variables that are longer than 32 bit?

I have 2 numbers in javascript that I want to bit and. They both are 33bit long in C#: ((4294967296 & 4294967296 )==0) is false but in javascript: ((4294967296 & 4294967296 )==0) is true 4294967296 is ((long)1) << 32 As I understand it, it is due to the fact that javascript converts values to int32 when performing bit wise ope...

Debugging on Windows7 64-bit

Hi, I am trying to debug my app, which was compiled for 32-bit, native code, under VS2005. It crashes on a Windows 7 64-bit machine. I can't figure out how to get a call stack to see where it's crashing. I installed VS2005 on the Windows 7 machine, ran my app, got my crash -- and the dialog had a "Debug" button on it! Yay! I hit th...

Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)

I'm creating a windows service on a windows 2003 machine, using dsofile to modify custom properties on a bunch of documents. This works fine until I install the service on a win2k8 machine where it gives me the following error: ERROR [2010-09-06 13:17:12,317] An unknown error occured: System.InvalidCastException: Unable to cast...

64 bit floats compiled with 32 bit compiler on 64 bit OS.

I hope this has not been covered before, but if i compile a 32 bit program in c++ that uses 64 bit floating point numbers (double), and run it on a 64 bit OS, will it still take as many clock cycles to move the 64 bit float to the cpu and back to ram as it would on a 32bit OS because its compiled for 32 bit. Or would it take less clock c...

64 bit Assembly introduction

I am looking for an articles which introduce Intel 64 bit processor and Assembly: list of x64 registers, commands syntax etc. for programmers familiar with 32 bit Assembly. Kind of "What's new" for 64 bit processor. ...

How can I choose between 32-bit or 64-bit build in C# Express?

I'm having a problem when I try to build my solution in C# Express 2008. I need to build it for 32-bit architecture, but it always build for 64-bit. In Visual Studio 2008 I can choose the architecture, but I can't find this option in C# Express. Is there a way to do this in C# Express? ...

Import from csv (into different columns) via Openrowset and Microsoft.ACE.OLEDB.12.0

I want to clarify how I could import data from .csv into table with 3 columns (see CR Ranking.csv below). My query: select * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Text;Database=C:\Work\;HDR=Yes;', 'SELECT * FROM [CR Ranking.csv]'); Outputs results into one coulmn: header: Category;INfo;Rank row 1: Category 1;Info;1 row 2: Ca...

Services 32bit dlls on 64bit machine

Hi there! I've built and installed my service from vs2010 onto a 64bit machine. My problem comes in when my service references 32 bit dlls (spssio32.dll to be precise) - I get the error in my event viewer : "System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x800700...

Why should I use the 64-bit JDK over the 32-bit version?

I use Eclipse and 64-bit Windows and develop Java desktop applications. Sofar I have only used the 32-bit JDK, is there any reason to change to 64-bit JDK for Java development? ...

SetWindowsHookEx failing in .NET 4.0 on 32-bit machine with "module not found"?

I have found similar questions on this page, but I can't seem to figure out how to interpret the answers or figure out if they are truly duplicates. Here are the possible duplicates I've found, with comments: SetWindowsHookEx returns 0 when compiling for the .NET 4.0 framework in 32bit machines It doesn't seem to return 0 on mine, bu...

Linux 64 command line parameters in Assembly

This description is valid for Linux 32 bit: When a Linux program begins, all pointers to command-line arguments are stored on the stack. The number of arguments is stored at 0(%ebp), the name of the program is stored at 4(%ebp), and the arguments are stored from 8(%ebp). I need the same information for 64 bit. Edit: I have working code...

ASPX editor in ASP.NET MVC warning about a 64-bit assembly

I'm using OpenCV via EMGU CV. Since there are separate assemblies for x64 and x86, I'm compiling my entire website solution for x64. I ran into one problem where the built-in debugging web server freaked out at the x64 binaries, so I started debugging in IIS instead, and that solved most of my problems, except for this one warning that ...

Is FreeResource required on 64-bit ?

According to afxv_w32.h, FreeResource and UnlockResource are not required on Win32 platforms (see last line of this file). What about Win64 platforms? I guess this remark also applies on these platforms. Can anyone confirm this? Thanks. ...

How can you parse a Java 64-bit long from a binary file into a PHP string?

I've used unpack to convert most of the data types I have in a binary file that I'm parsing with little problems. I have no idea how to work with a big endian 64-bit signed long. I think this data type is stored using 2's complement. The application of the data file I'm reading is a java app so I assume it's 2's complement. I don't need ...

Will 32-bit version of GhostScript work on 64-bit systems?

I'm going to redistribute gsdll32.dll, main library of GhostScript. There are two versions available for download, 32 and 64 bit. Will the first one work on 64-bit systems, or I need package two versions separately? ...

NSString to 64bit integer converstion on iPhone

Hi! I am struggling with very simple thing: I receive some ids by http request as a string. I know they represent 64bit integer id numbers. How can I convert them to the 64 bit Integers (NSNumber or NSInteger)? Functions like: [nsstring integerValue], [nsstring intValue] seems to be 32bit limited (max value:2147483647). Any Hints? ...

how to extract 64 bit signed integer value

I'm querying a NSDictionary for a value. Because I got problems I printed the object. It shows me the following: <CFString 0x5d33630 [0x26af380]>{contents = "myDictionaryItem"} = <CFNumber 0x5d58940 [0x26af380]>{value = +1286301600, type = kCFNumberSInt64Type} So it is of type signed 64 bit integer. So I tried to extract the value like...

Linux 64 bit porting issue

Hi, I am working on Linux 64 bit porting and we used a lots of long variable in our code. Now on Linux 64 long is 64 bit. We are facing problem in the bits manipulation code. I heard there are options LLP64(long as 32) and ILP64(long as 64). But I don’t know the compiler option for it(g++). I have few more doubts, If I compile with o...