64-bit

Reading the registry and Wow6432Node key

会有一股神秘感。 提交于 2019-12-17 06:28:53
问题 I have some code that reads the registry and looks for a value in HKEY_LOCAL_MACHINE\Software\App\ but when running on 64-bit versions of Windows the value is under HKEY_LOCAL_MACHINE\Software\Wow6432Node\App\ . How should I best approach this? Do I need a 64-bit installer or should I rewrite my code to detect both places? 回答1: If you mark you C# program as x86 (and not Any CPU) then it will see HKEY_LOCAL_MACHINE\Software\Wow6432Node\App as HKEY_LOCAL_MACHINE\Software\App\ . A .NET program

Why does the Python 2.7 AMD 64 installer seem to run Python in 32 bit mode?

一个人想着一个人 提交于 2019-12-17 06:14:23
问题 I've installed Python 2.7 from the python-2.7.amd64.msi package from python.org. It installs and runs correctly, but seems to be in 32-bit mode, despite the fact that the installer was a 64 bit installer. Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys, platform >>> platform.architecture() ('64bit', 'WindowsPE') >>> sys.maxint 2147483647 What can I do to install Python so

Can I get Memcached running on a Windows (x64) 64bit environment?

徘徊边缘 提交于 2019-12-17 05:24:05
问题 Does anyone know IF , WHEN or HOW I can get Memcached running on a Windows 64bit environment? I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC solution with SQL Server DB, the OS is either going to be Windows Server 2003 or (hopefully!) 2008. I know that this could spill over into a debate regarding 32bit vs 64bit on servers, but let's just say that my preference is 64bit and that I have some very good reasons. So far, I've tried a

Detect 64bit OS (windows) in Python

谁都会走 提交于 2019-12-17 04:52:44
问题 Does anyone know how I would go about detected what bit version Windows is under Python. I need to know this as a way of using the right folder for Program Files. Many thanks 回答1: platform module -- Access to underlying platform’s identifying data >>> import platform >>> platform.architecture() ('32bit', 'WindowsPE') On 64-bit Windows, 32-bit Python returns: ('32bit', 'WindowsPE') And that means that this answer, even though it has been accepted, is incorrect. Please see some of the answers

Is there any “standard” htonl-like function for 64 bits integers in C++?

柔情痞子 提交于 2019-12-17 04:23:14
问题 I'm working on an implementation of the memcache protocol which, at some points, uses 64 bits integer values. These values must be stored in "network byte order". I wish there was some uint64_t htonll(uint64_t value) function to do the change, but unfortunately, if it exist, I couldn't find it. So I have 1 or 2 questions: Is there any portable (Windows, Linux, AIX) standard function to do this ? If there is no such function, how would you implement it ? I have in mind a basic implementation

Is there any “standard” htonl-like function for 64 bits integers in C++?

泄露秘密 提交于 2019-12-17 04:22:06
问题 I'm working on an implementation of the memcache protocol which, at some points, uses 64 bits integer values. These values must be stored in "network byte order". I wish there was some uint64_t htonll(uint64_t value) function to do the change, but unfortunately, if it exist, I couldn't find it. So I have 1 or 2 questions: Is there any portable (Windows, Linux, AIX) standard function to do this ? If there is no such function, how would you implement it ? I have in mind a basic implementation

How do I run a VBScript in 32-bit mode on a 64-bit machine?

陌路散爱 提交于 2019-12-17 04:18:51
问题 I have a text file that ends with .vbs that I have written the following in: Set Conn = CreateObject("ADODB.Connection") Conn.Provider = "Microsoft.ACE.OLEDB.12.0" Conn.Properties("Data Source") = "C:\dummy.accdb" Conn.Properties("Jet OLEDB:Database Password") = "pass" Conn.Open Conn.Close Set Conn = Nothing When I execute this on a Windows 32-bit machine it runs and ends without any notion (expected). When I execute this on a Windows 64-bit machine it gets the error Provider cannot be found.

Android SDK on a 64-bit linux machine

心已入冬 提交于 2019-12-17 04:12:50
问题 Is it possible to develop using the Android SDK on a 64-bit linux machine. The available SDK downloads seem to be just for 32-bit versions of Linux. 回答1: Yes, it is. You need to install the ia32 libraries. Check out the Ubuntu Linux troubleshooting section. apt-get install ia32-libs apt-get install sun-java6-jdk 回答2: On (K)Ubuntu you need following 32-bit packages: sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 for running the emulator you need that additional

Android SDK on a 64-bit linux machine

核能气质少年 提交于 2019-12-17 04:12:06
问题 Is it possible to develop using the Android SDK on a 64-bit linux machine. The available SDK downloads seem to be just for 32-bit versions of Linux. 回答1: Yes, it is. You need to install the ia32 libraries. Check out the Ubuntu Linux troubleshooting section. apt-get install ia32-libs apt-get install sun-java6-jdk 回答2: On (K)Ubuntu you need following 32-bit packages: sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 for running the emulator you need that additional

File getting copied to SysWOW64 instead of System32

喜欢而已 提交于 2019-12-17 04:01:29
问题 I have to copy a psTool utility to System32 folder when my application runs. I am on 64 bit Windows 7 and whenever, I try to copy the exe to system32 bit folder through File.Copy , the exe always gets copied to SysWow64 instead. When I put a breakpoint on destFile, the path is shown as C:\Windows\System32 but the file does not go in there (goes to sysWow64). I have tried the Special Folder SystemX86 , but the file again goes to sysWOW64. string sourceFile = "C:\bin\Debug\somexe.exe" string