32bit-64bit

What Is the difference between how the char datatype is stored or represented in 32bit vs 64bit in C?

What Is the difference between how the char datatype is stored or represented in 32bit vs 64bit in C? ...

What are some techniques to safely handle both 32bit and 64bit pointers without a conditional macro?

I'm updating some code in a library because i've found out my original code assumed 32bit pointers. I have my own thinkings on how to fix it, but for thoroughness, I want to ask what are some techniques you would use to make this code work for both 32bit and 64bit without a macro? char *argList = (char *)malloc(sizeof(id *) * arguments...

What is the most efficient cross-process communication method for IIS web services

We have a set of (ASMX but could be WCF) 64-bit web services which need to execute some 32-bit managed code (the APIs have 32-bit COM dependencies and cannot be executed in 64-bit) for processing on the same physical machine. The 64-bit web services are hosted in IIS 7.0. Note: some of the messages contain large byte arrays. What is the...

How to detemine (by code) the assembly corflags?

I need to write a CorFlags-like application. If I have a path to assembly file, how to I read its CorFlags? I specifically need to know if the assembly is Any-CPU or x86 only I want to avoid loading the assembly using reflection because I need to scan many files. ThanksSaa ...

CPU Architecture Independent P/Invoke: Can the DllName or path be "dynamic"?

Is there a way to have the particular DLL referenced by a P/Invoke (DllImport) signature depend on the CPU architecture? I'm working on an application that loads a large number of method signatures from a native dll from a third party vendor, in this case the user-space interface DLL to a piece of hardware. That vendor has now started ...

BHO plugin not working for IE7 on 64bit OS

Hi all, The BHO which works smoothly on IE7 32bit XP/Vista does not work for IE7 on 64bt XP/Vista. I suspect the problem is with registering the BHO assembly. Can anyone has a good solution to make the BHO work for 64bit platform? Thanks, Datte ...

How can I analize Assembly file to get its corflags?

I need to write code that reads the corflags of a .net assembly without loading it through reflection. It takes relativly long time to load an assembly so I am looking for something that will open it as a stream and analize the binary stream. Where do I find information about the assembly binary metadata struture? Is there any code sn...

Moving from 32-bit to 64-bit development, need clarification regarding .net framework and platform

Hello, Quick background: I develop C# in VS2008 under .net 3.5 on a Vista-x64 machine I recently switched to Vista-x64 and after some searching, I still feel that I do not completely understand interplay between OS and the .net framework. I would like some correction/clarification regarding this. The following is my understanding of t...

Creating 64-bit applications

If I have a 32-bit application written in C#, what do I need to do to convert it 64-bit? I'm assuming its more complicated then simply changing the target machine to 64-bit in Visual Studio and recompiling. ...

Is a 32-bit ASP.NET app running on 64-bit Windows LARGEADDRESSAWARE

I have an existing 32-bit ASP.NET application that used 32-bit unmanaged DLLs. If I run this on a 64-bit OS, will it automatically be LARGEADDRESSAWARE (i.e. have access to the full 4GB of virtual memory)? If not, what can I do to make it LARGEADDRESSAWARE? Googling turned up this question, but it lacks the answer to the above questio...

Fortran: 32 bit / 64 bit performance portability

I've been starting to use Fortran (95) for some numerical code (generating python modules). Here is a simple example: subroutine bincount (x,c,n,m) implicit none integer, intent(in) :: n,m integer, dimension(0:n-1), intent(in) :: x integer, dimension(0:m-1), intent(out) :: c integer :: i c = 0 do i = 0, n-1 c(x(i)) = ...

How do I make OS X 10.6 compile JSON::XS as 32-bit instead of 64-bit?

I compiled Perl 5.10.1 under OS X 10.5. It was compiled as a 32-bit program. I have since upgraded to OS X 10.6. My version of Perl 5.10.1 continues to work fine, but I just tried to compile JSON::XS and got errors like the following: Can't load '/Users/cowens/.cpan/build/JSON-XS-2.26-clO6XX/blib/arch/auto/JSON/XS/XS.bundle' for m...

How to compile a Website to use 32-bit Oracle Client on 64-bit Windows

I have received this error after updating to Windows 7 64-bit and then running an existing .NET Website. [InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.] I have only installed the ...

Encoding/decoding CGFloat on 32- vs 64-bit

I'm converting an app to work in 64-bit. The Apple docs state that the CGFloat type is a float on 32-bit and a double on 64-bit. If that is so, how do you handle encoding/decoding of the value? For instance, if creating an NSNumber from a CGFloat, should I use the -numberWithFloat: or -numberWithDouble: method of NSNumber? The same ques...

Does Visual Studio 2008 work well with Windows 7 pro 64bit

I am just about to buy a Dell Studio 15 Laptop with Windows 7 Pro 64bit Has anyone faced any issues in installing or working with Visual Studio 2008 on Windows 7 Pro. Or do I need to go for Windows 7 Pro 32 bit? [EDIT] Any issues with any other development tools, what about VS2008SP1, Azure Add ons, Sql Server 2008 express, Virtual Ser...

What is faster on division? doubles / floats / UInt32 / UInt64 ? in C++/C

Hi everyone, I did some speed testing to figure out what is the fastest, when doing multiplication or division on numbers. I had to really work hard to defeat the optimiser. I got nonsensical results such as a massive loop operating in 2 microseconds, or that multiplication was the same speed as division (if only that were true). After...

Moving an App from 32 bit to 64 bit

We have a Windows Service app written in C# targeted for AnyCPU. It runs on a Win2003 (32bit) server. Recently it started to run out of memory. What is involved in redeploying this service to a Win2003 (64bit) box. Do I need to recompile it and will the App get more memory if I do not recompile it? ...

Java loading library windows 7 64bit

I have a java webstart program, it runs on xp, osx, vista, and windows 7. I just tried to run it on windows 7 64bit and it is having a problem loading a library. On this win7x64 machine I have the 64bit jdk/jre and the library it is not loading is swt-win32.dll. Yeah it's 32bit, but I'm getting: Exception in thread "Thread-10" java.lang...

Using Quest Geo Solutions GIQ60 library on a 64bit machine

We are using Quest Geo Solution's Grid InQuest DLL (GIQ60.DLL) within an SQL Server Integration Services (SSIS) package. We have managed to use this without problems locally (32bit) by using tlbimp to create a .NET wrapper (interop). However, when this moved to our integration server this does not work as the server is 64bit. The GIQ6...

How do I determine whether an application I am installing is 32bit or 64bit?

I want to be able to predict the default install location of an application. On a 64 bit machine, if it is a 32bit application, it would install in "Program Files (x86)" and if it were a 64bit application, it would install in "Program Files". My goal is to install the application with its default location and validate if the install was...