64bit

64-bit integer implementation for 8-bit microcontroller

I'm working on OKI 431 microcontroller. This is 8-bit microcontroller. We don't like to have any floating point operation to be performed in our project so we've eliminated all floating point operations and converted them into integer operations in some way. But we cannot eliminate one floating point operation because optimizing the calc...

Calling 64-bit COM control from 32-bit app

We have a situation where one of our products is a 32-bit app, but needs to communicate with instruments via 64-bit COM control (which wraps a 64-bit device driver). For various reasons, we don't want to compile this app as a 64-bit app, but we DO want to run it on a 64-bit OS. Since the drivers and COM control must be 64-bit to work, w...

Do I need special WQL queries for 64-bit apps?

I'm using the WqlObjectQuery to find out information on processes. I'm making calls such as this: Select ExecutablePath from Win32_Process where ProcessID = {0} Will this also work in 64 bit versions of windows and for 64 bit applications? Or do I need to modify my query to handle 64 bit apps? ...

How to enum modules in a 64bit process from a 32bit WOW process

Hi, All, I have a requirement to retrieve all modules of a 64bit process in a 32bit WOW process in Windows, EnumProcessModules would fail as described: If this function is called from a 32-bit application running on WOW64, it can only enumerate the modules of a 32-bit process. If the process is a 64-bit process, this function fails ...

C# System.Diagnostics.Process: can't launch a 32 bit exe file in 64 bit OS

I have a 32 bit exe file compiled with Turbo Pascal. I need to launch it. It worked well when I had Windows 7 32 bit, but now I'm on Windows 7 64 bit, and I get the following exception: The specified executable is not a valid application for this OS platform. To make sure it works on 32 bit systems, I launched the C# program in a 3...

Using a 32 Bit Com Object from a 64 Bit IFilter

I have an IFilter written in Delphi that I'm trying to get working under 64 bit Windows 7 Desktop Search. Due to it being developed in Delphi I can only compile this as a 32 Bit DLL. To work around this I am trying to write a 64bit IFilter Dll in Visual C++ which internally uses my 32Bit IFilter Com Object using the DllSurogate techn...

Are pyc files independent of the interpreter architecture?

From the tests I've done, with the same version of python (same magic number), a 64 bit interpreter can load pyc files made with a 32 bit version of python. And reciprocally I assume. But is it totally safe? Can this lead to unexpected behavior? ...

Passing 32-bit pointer to 64-bit COM control

We have a 32-bit app which interfaces with a 64-bit COM control. In order to handle the interface, I created a 64-bit COM object which resides in a local server (exe). This local server object implements the same interface as our COM control, and simply passes-through the calls. Everything is working except for those interface functio...

Conditionally use 32/64 bit reference when building in Visual Studio

I have a project that builds in 32/64-bit and has corresponding 32/64-bit dependencies. I want to be able to switch configurations and have the correct reference used, but I don't know how to tell Visual Studio to use the architecture-appropriate dependency. Maybe I'm going about this the wrong way, but I want to be able to switch betw...

How to avoid problems with size_t and int types in 64bit C++ builds?

Today I made a 64bit build of my project for the first time. Basically it compiled, linked and ran ok, except for warnings complaining about incompatibility between the new, 64bit size_t type and the simple int type. This mostly occurs in situations like this in my code: void func(std::vector<Something> &vec) { int n = vec.size(); ...

64-bit OutOfMemoryException with SqlDataAdapter

The environment is: 64-bit Windows ~50GB RAM .NET 3.5 SP1 SQL 2008 The code is (essentially, from memory): System.Data.DataTable table = new System.Data.DataTable(); SqlCommand command = new SqlCommand("SELECT XmlColumn FROM Table WHERE ID = UniqueID", Connection); SqlDataAdapter adapter = new SqlDataAdapter(command); adapter.Fil...

WCF 64 bit not working

Hi, I'm trying to develop a simple WCF service running in a 64 bit environment. I fire up VS2010 under Windows 7 New Solution -> WCF project -> Run -> It works fine. As soon as I change the properties of the project in order to make it compile in 64 bit, running it throws the following exception: Could not load file or assembly 'WcfS...

[SQLite3] DLL File for windows 7 64bit

Hi guys, I'm porting my Windows XP application (wrote with C#) to Windows 7 application. Now I'm using sqlite3.dll on my XP App (32bit) and I would download sqlite3.dll for 64bit machine. For my purpose I've moved sqlite3.dll on my /bin folder and, obviously, when I try to start my app on windows 7 I receive an error. So, where I downloa...

How to use Int64 in C#

Hi,The question is easy! How do you represent a 64 bit int in C#? ...

Windows 7 64-bit Eclipse debug on DroidX over USB

I am running Windows 7 64-bit with Eclipse and Android. The SDKs are installed and it runs very well with the emulator interacting with the PC screen and keyboard. I would likre tp test on my real phone (DroidX). When I install the DroidX on the USB cable Windows 7 immediatly tells me I loaded a removable disk on Drive N. How do I es...

Structs on the stack (ANSI C)

Dear all Having started to study Ulrich Dreppers "What every programmer should know about memory" [1] series I got stuck when trying to reproduce the examples presented in section 3.3.2 Measurements of Cache Effects As far as I understand the structures should be allocated on the stack since then they are in memory one after another....

Calling a method inside a .NET 32-bit dll from a .NET 64-bit exe using reflection

I have a 32 bit .NET class library having a simple public class and a simple public method. I have a 64 bit .NET console application where using reflection, I wish to load the 32 bit assembly and consume its method. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using Host....

Convert 8 bytes to a signed long (64 bit)

I'm reading 8 bytes from a socket in PHP, and want to transform them into a 64 bit signed integer. How can I do this in 64 bit PHP? unpack doesn't support 64 bit numbers In 32 bit PHP, is there a way to make it into a string that can be used by BCMath? ...

is it possible to build an app that runs in 32bit in Leopard but 32/64bit universal in Snow Leopard with XCode?

I need to load flashplayer with webkit. but even the latest 'square' flashplayer doesn't support 64bit in Leopard by default. Unless I use the flashplayer-10.6.plugin instead. since webkit use a pluginAgent in Snow Leopard when running in 64bit mode. it does't matter whether my app is 32bit or 64bit. but unfortunately, the pluginAgent is...

In Perl, how can I do 64bit hex/decimal arithmetic AND output full number in HEX as string?

I need to do some arithmetic with large hexadecimal numbers below, but when I try to output I'm getting overflow error messages "Hexadecimal number > 0xffffffff non-portable", messages about not portable, or the maximum 32bit hex value FFFFFFFF. All of which imply that the standard language and output routines only cope with 32 bit value...