32-bit

Accessing the Windows registry using .NET?

房东的猫 提交于 2019-12-04 12:16:32
问题 I am finding a strange behavior with a .NET module accessing the Windows Registry using the RegistryKey class. For example, I have written a .NET module, testcom.dll, which access the registry. This testcom.dll file is used both by a native 32-bit application and a 64-bit application. My requirement is to get the value of a regkey (path being HKEY_LOCAL_MACHINE\SOFTWARE\Test\MyParameters and the key name is Age ). This "Age" key will be in 32-bit registry on 32-bit machines and 64-bit

What's the correct way to use win32inet.WinHttpGetProxyForUrl

浪尽此生 提交于 2019-12-04 11:46:07
I'm trying to use a feature of the Microsoft WinHttp library that has been exposed by the developers of Win32com. Unfortunately most of the library does not seem to be documented and there are no example of the correct way to use the win32inet features via the win32com library. This is what I have so far: import win32inet hinternet = win32inet.InternetOpen("foo 1.0", 0, "", "", 0) # Does not work!!! proxy = win32inet.WinHttpGetProxyForUrl( hinternet, u"http://www.foo.com", 0 ) As you can see, all I am trying to do is use the win32inet feature to find out which proxy is the appropriate one to

How to install Docker on 32bit machine having Ubuntu 12.04?

拥有回忆 提交于 2019-12-04 10:31:18
问题 I have followed the docker installation doc for installing it on my machine which is a 32 bit machine running Ubuntu 12.04 The step $ sudo apt-get install docker-engine fails saying E: Unable to locate package docker-engine It should have been installed, right? Also I came to know that, Docker currently only supports 64bit platforms. $ wget -qO- https://get.docker.io/ | sh Error: you are not using a 64bit platform. Docker currently only supports 64bit platforms. Is there a way to I install it

How do the bit manipulations in this bit-sorting code work?

风流意气都作罢 提交于 2019-12-04 07:57:06
问题 Jon Bentley in Column 1 of his book programming pearls introduces a technique for sorting a sequence of non-zero positive integers using bit vectors. I have taken the program bitsort.c from here and pasted it below: /* Copyright (C) 1999 Lucent Technologies */ /* From 'Programming Pearls' by Jon Bentley */ /* bitsort.c -- bitmap sort from Column 1 * Sort distinct integers in the range [0..N-1] */ #include <stdio.h> #define BITSPERWORD 32 #define SHIFT 5 #define MASK 0x1F #define N 10000000

Segmentation Fault 11 linking os x 32-bit assembler

南笙酒味 提交于 2019-12-04 04:26:29
问题 UPDATE: Sure enough, it was a bug in the latest version of nasm. I "downgraded" and after fixing my code as shown in the answer I accepted, everything is working properly. Thanks, everyone! I'm having problems with what should be a very simple program in 32-bit assembler on OS X. First, the code: section .data hello db "Hello, world", 0x0a, 0x00 section .text default rel global _main extern _printf, _exit _main: sub esp, 12 ; 16-byte align stack push hello call _printf push 0 call _exit It

How can a 32 bit process communicate with a 64 bit process in .NET?

假如想象 提交于 2019-12-04 04:17:43
Windows does not make it possible for a 32 bit process to load a 64 bit dll, so I am trying to use remoting in order to allow the 32 bit process to interact with a 64 bit process. Here's the problem: while the two applications are located on the same machine, one is 32 bit and the other is 64 bit, and they have to be that way: making both 32 bit or 64 bit would break everything these applications are built on top of. I'm using .NET's System.Runtime.Remoting.RemotingConfiguration class and calling its Configure() method and passing a reference to an App.config file which references the

fatal error: sys/socket.h: No such file or directory on 32bit

試著忘記壹切 提交于 2019-12-04 04:08:02
问题 When compiling my program in 32bit using gcc -m32 program.c -o program I get the following error fatal error: sys/socket.h: No such file or directory but with gcc program.c -o program it works fine Is there any workaround for this? 回答1: my personal similar problem was solved as below: by the way I am using cygwin. The reason behind this error is trying to compile a unix c socket example in a window environment. If you want to use windows, I think you should have cygwin installed with all the

Why is the 64-bit MSBuild loading 32-bit extensions?

点点圈 提交于 2019-12-04 02:57:09
I'm attempting to build a project using MSBuild (v4.0) on a 64-bit machine. For some reason, MSBuild is attempting to load a 32-bit extension, and I cannot figure out why. I've reduced the problem to the smallest set in order to demonstrate the issue. Using the following MSBuild project file: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <Target Name="test"> <Message Text="bin path: $(MSBuildBinPath)" /> <Message Text="extensions path: $(MSBuildExtensionsPath)" /> <Message Text="extensions path (x86): $(MSBuildExtensionsPath32)" /> <Message Text=

Cannot run 32-bit apps on 64-bit Linux

会有一股神秘感。 提交于 2019-12-04 02:53:05
I have a very minimal install of Ubuntu 8.04 64-bit. When I try to run some 32-bit programs, such as my jhead program, I get the message No such file or directory . I figured it may be a library problem, but when I do: ldd jhead instead of a list of libraries it needs, I just get the message not a dynamic application . Same for another old 32-bit app I use. So it would appear some very important components for running 32 bit apps are not installed. But how do I even determine what these are? You will need to install the 32bit library package ia32-libs - ia32 shared libraries for use on amd64

MySQL ODBC 32 vs 64 bit

。_饼干妹妹 提交于 2019-12-03 17:30:15
I have a 32-bit application that must run on a Windows x64 server using a 64-bit version of MySQL. Should I use a 32-bit ODBC driver or a 64-bit ODBC driver? Or should I install a 32-bit version of MySQL too? Justin Gregoire You would need to install a 32-bit SQL and ODBC driver seeing as how your application is in 32-bit. For compatibility reasons. I am still searching, will edit. ** EDIT To work around this problem, use the appropriate version of the ODBC Administrator tool. If you build and then run an application as a 32-bit application on a 64-bit operating system, you must create the