32-bit

C# PInvoking user32.dll on a 64 bit system

守給你的承諾、 提交于 2019-11-29 10:54:27
问题 Is it wrong to pinvoke user32.dll on 64 bit Windows, from a 64 bit app? I've done this successfully a number of times and never had an error, but it seems contradictory. Should I look for user64.dll instead? 回答1: The name user32.dll is misleading. It's the 64 bit version of user32.dll you're calling. The 64 bit version is located at %windir%\System32\user32.dll . A 32-bit version is included for compatibility with 32-bit applications. It's located at %windir%\SysWOW64\user32.dll . You can

How do I force MSBuild to compile for 32-bit mode?

核能气质少年 提交于 2019-11-29 10:43:13
问题 I'm using MSBuild (via NAnt) to compile a bunch of VB.NET assemblies. Because these assemblies depend on COM Interop, I need to guarantee that they run in 32-bit mode on 64 bit OS's. I can get the executable assemblies to compile to 32-bit by changing the project in Visual Studio, but I'd really like to be able to force all of the executables to be compiled to 32 bit mode on the build server. I've tried a number of command-line parameters to MSBuild with no luck: /p:Platform=win32 /p:Platform

Will a Visual Basic 6 program run on a 64-bit machine?

雨燕双飞 提交于 2019-11-29 10:19:13
I have a program built with VB6 and using some 32-bit DLL's . Will this program run on a 64-bit machine? This page suggests that it should run fine on the Windows on Windows layer, but what about the DLL's? Yes , both the VB 6 program and the DLLs will work just fine on a 64-bit version of Windows. Since both are 32-bit, they will run under the Windows-on-Windows 64 (WoW64) subsystem , which effectively emulates a 32-bit operating system on the 64-bit versions of Windows. I've run many such programs myself with nary a hitch. Beyond Explorer extensions and kernel mode drivers (neither of which

Using 32bit COM addin under MS Office 64 bit

橙三吉。 提交于 2019-11-29 08:13:00
I am struggling to apply an existing 32bit COM addin to 64bit Microsoft Word 2010. To make the addin visible to Word, I have used the dllsurrogate-method, as it described here . The problem is that now addin caused some strange exception when tries to add its toolbar and menu to office's. I cannot figure out, what it is, it seems, that the command bar reference became not valid in unpredicable moments. Can anyone explain this? Note, that everething is fine when I use the same addin under 32bit Microsoft Word 2010 and more old versions of Ms Office. 32-bit add-ins are not supported on 64-bit.

Apple's gcc, what's the difference between -arch i386 and -m32?

不打扰是莪最后的温柔 提交于 2019-11-29 06:12:52
According to Apple's gcc 4.2.1 doc : -arch arch Compile for the specified target architecture arch. The allowable values are 'i386', 'x86_64', 'ppc' and 'ppc64'. Multiple options work, and direct the compiler to produce “universal” binaries including object code for each architecture specified with -arch. This option only works if assembler and libraries are available for each architecture specified. (APPLE ONLY) So what's the difference between these two calls: gcc -arch i386 program.c and gcc -m32 program.c Is it just that -arch is more powerful as it's more flexible and can produce

#ifdef for 32-bit platform

牧云@^-^@ 提交于 2019-11-29 05:48:57
问题 In an application I maintain, we've encountered a problem with file descriptor limitations affecting the stdlib. This problem only affects the 32-bit version of the standard lib. I have devised a fix for my code and would like to implement it, but only when compiling for 32-bit executable. What pre-processor symbol can I #ifdef for to determine whether the code is being compiled for a 32 or 64-bit target? EDIT Sorry, didn't mention, the code is cross-platform, linux, windows, solaris and a

Java 7 on 32-bit Windows 7 - Java Webstart - Unable to load resource

半城伤御伤魂 提交于 2019-11-29 04:52:08
Java 7 on 32-bit Windows 7 - Java Webstart - Unable to load resource I can't launch any java webstart application on a 32-bit Windows 7 system. E.g. ArgoUML - http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp Everything works fine with Java 6, but with Java 7 I get this kind of errors: Unable to load resource: java.io.IOException: Error writing to server or java.net.SocketException: Connection reset Java version: Java Web Start 10.7.2.11 Using JRE version 1.7.0_07-b11 Java HotSpot(TM) Client VM Here is the trace log: Log started: pe, 21 syys 2012 21:04:19 +0300 basic: Java

Win32 API to tell whether a given binary (EXE or DLL) is x86, x64, or ia64

十年热恋 提交于 2019-11-29 04:51:05
I am trying to find a programmatic way to tell if a binary is x86, x64, or ia64. Platform: Windows. Language: c/c++. Background: Before trying to load a third-party dll, I need to find out its bitness. Appreciate any pointers. Shay Erlichmen For EXEs use GetBinaryType(...) Here is same question for manged exe. For DLLs (and EXEs) Use the ImageNtHeader(...) to get the PE data of the file and then check the IMAGE_FILE_HEADER.Machine field. Here is some code I found using Google Code Search No Cleanup and NO error checking // map the file to our address space // first, create a file mapping

How to force /usr/bin/gcc -> /usr/bin/gcc -m32?

落爺英雄遲暮 提交于 2019-11-29 02:45:47
I have bad Makefile(s) of a large bundled software distribution. In some point compiler always "forgets" that I want to compile in 32 bit program. This causes that part of the programs have 64 bit libraries and others have 32 bit libraries. How can I force -m32 option every time that I run gcc? br, Juha P.S. My environment is mixed 32/64 bit (macbook5.1, snow leopard). Alternatively: How can I make my system purely 32 or 64 bits? edit: Emphasis on the bad Makefiles that override the global variables. Thats why I chosed the hack that works. If you want a crappy hack, you could replace /usr/bin

objc_setAssociatedObject function error in 64bit mode not in 32bit

為{幸葍}努か 提交于 2019-11-29 00:09:57
I am using a neat table view controller called SKSTableView in my project which allows each table row to have a number of sub rows. This code works perfectly in 32bit mode but when I run it on my iPhone 5S or in the Simulator in 4-inch 64bit mode, when you tap on a row to get the sub rows it crashes. I do not have any knowledge of the differences of 64bit and 32bit iOS systems. I would love to understand what it happening here. You will notice that the *SubRowObjectKey is set to void- the error I get is: EXC_BAD_ACCESS_(code=EXC_I386_GPFLT) Which is a general protection fault trying to access