tagged [64-bit]

C# reads wrong registry data on 64-bit OS

C# reads wrong registry data on 64-bit OS I'm working on a 64-bit Windows and my applicaiton runs with elevated privileges. I have a problem with the following very simple piece of code: But for some ...

16 May at 12:50

Can I run a 64-bit VMware image on a 32-bit machine?

Can I run a 64-bit VMware image on a 32-bit machine? Can I run a 64-bit VMware image on a 32-bit machine? I've googled this, but there doesn't seem to be a conclusive answer. I know that it would have...

How to produce 64 bit masks?

How to produce 64 bit masks? Based on the following simple program the bitwise left shift operator works only for 32 bits. Is it true? ``` #include #include using namespace std; int main(void) { ...

21 Apr at 19:12

How do I disable a system device programmatically?

How do I disable a system device programmatically? I am looking for way to disable a system device (either USB or internal) in C#.NET given either the PID & VID or the device name. After searching I f...

14 Nov at 03:44

What's sizeof(size_t) on 32-bit vs the various 64-bit data models?

What's sizeof(size_t) on 32-bit vs the various 64-bit data models? On a 64-bit system, `sizeof(unsigned long)` depends on the data model implemented by the system, for example, it is 4 bytes on LLP64 ...

24 Apr at 21:57

C# Access 64 bit Registry

C# Access 64 bit Registry I was wondering if it was possible to access the following registry key in C# on a 64 bit pc. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run When accessing on a 32bit pc ...

5 Aug at 12:0

How to find if a native DLL file is compiled as x64 or x86?

How to find if a native DLL file is compiled as x64 or x86? I want to determine if a native assembly is complied as x64 or x86 from a managed code application ([C#](http://en.wikipedia.org/wiki/C_Shar...

28 Jun at 07:54

Why is an 'Any CPU' application running as x86 on a x64 machine?

Why is an 'Any CPU' application running as x86 on a x64 machine? I have a application installed to Program Files (x86). On one Windows 7 x64 machine, it runs as x64 as expected while on another Window...

14 Feb at 10:53

How to detect Windows 64-bit platform with .NET?

How to detect Windows 64-bit platform with .NET? In a [.NET](http://en.wikipedia.org/wiki/.NET_Framework) 2.0 C# application I use the following code to detect the operating system platform: This retu...

Does P/Invoke on 64-bit windows require different signatures than on 32-bit?

Does P/Invoke on 64-bit windows require different signatures than on 32-bit? When I create a signature that refers to `user32.dll` for example should I be building this with `user64.dll` if the target...

15 Sep at 10:12

How to printf a 64-bit integer as hex?

How to printf a 64-bit integer as hex? With the following code I am trying to output the value of a `unit64_t` variable using `printf()`. Compiling the code with gcc, returns the following warning: > ...

27 Apr at 18:55

Using Side-by-Side assemblies to load the x64 or x32 version of a DLL

Using Side-by-Side assemblies to load the x64 or x32 version of a DLL We have two versions of a managed C++ assembly, one for x86 and one for x64. This assembly is called by a .net application complie...

20 Sep at 18:45

What does the Visual Studio "Any CPU" target mean?

What does the Visual Studio "Any CPU" target mean? I have some confusion related to the .NET platform build options in Visual Studio 2008. What is the "Any CPU" compilation target, and what sort of fi...

11 Nov at 15:16

C# - How to get Program Files (x86) on Windows 64 bit

C# - How to get Program Files (x86) on Windows 64 bit I'm using: In order to determine if a program is detected on a users machine (it's not ideal, but the program I'm looking for is a right old kludg...

29 Sep at 21:23

Processor, OS : 32bit, 64 bit

Processor, OS : 32bit, 64 bit I am new to programming and come from a non-CS background (no formal degree). I mostly program winforms using C#. I tried to go through some Computer Organization and Arc...

7 Aug at 10:56

x64 vs x86 Performance Considerations .Net

x64 vs x86 Performance Considerations .Net I am trying to understand what performance differences exist when running a native C# / .Net 4.0 app in x64 vs x86. I understand the memory considerations (x...

28 Jun at 20:32

Process Memory limit of 64-bit process

Process Memory limit of 64-bit process I currently have a 32-bit .Net application (on x86 Windows) which require lots of memory. Recently it started throwing System.OutOfMemoryException's. So, I am pl...

8 Mar at 03:42

OleDB not supported in 64bit mode?

OleDB not supported in 64bit mode? I've been using Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0 to read in .csv, .xls, and .xlsx files. I just found out that neither of these technologies are ...

29 Aug at 14:1

Visual Studio designer in x64 doesn't work

Visual Studio designer in x64 doesn't work In Visual Studio 2010 64bit I can't design my forms. I keep getting this warning (and error): ``` Warning 18 The designer could not be shown for this file b...

System.BadImageFormatException: Could not load file or assembly (from installutil.exe)

System.BadImageFormatException: Could not load file or assembly (from installutil.exe) I am trying to install a Windows service using InstallUtil.exe and am getting the error message > System.BadImage...

Is there any way for an MSBuild project to determine whether the 32-bit or 64-bit version of MSBuild is running?

Is there any way for an MSBuild project to determine whether the 32-bit or 64-bit version of MSBuild is running? After having found the answer to [my question](https://stackoverflow.com/questions/3586...

23 May at 12:18

Memory limitted to about 2.5 GB for single .net process

Memory limitted to about 2.5 GB for single .net process I am writing `.NET` applications running on Windows Server 2016 that does an http get on a bunch of pieces of a large file. This dramatically sp...

7 Nov at 16:7

System.BadImageFormatException: Could not load file or assembly

System.BadImageFormatException: Could not load file or assembly ``` C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil.exe C:\_PRODUKCIJA\D ebug\DynamicHtmlTool.exe Microsoft (R) .NET Framewo...

15 May at 20:39

Vista 64-bit Development Caveats

Vista 64-bit Development Caveats I'm migrating my development workstation from 32-bit Vista to 64-bit Vista. The production platform is 32-bit Windows Server and SQL Server 2008. Does anyone know of ...

sgen.exe x64 .net c# fails with "assembly with an incorrect format"

sgen.exe x64 .net c# fails with "assembly with an incorrect format" I have ws2008 x64 with vs2008. When I set my vs to x64 (because I have 64bit dlls) and run compilation sgen says that An attempt was...

28 May at 18:7