32bit-64bit

Getting the GUID of an installed COM object

风格不统一 提交于 2019-12-31 03:15:11
问题 I have a 32bit COM object that I want to use with 64bit PHP. I am trying to follow the tutorial here: http://www.gfi.com/blog/32bit-object-64bit-environment/ But I am stuck on "Locate your COM object GUID", as I have no idea where I can find out this information. Does anyone know how I can find the GUID of the COM object? 回答1: You will at least have to know the ProgID of the COM component. Something similar to "Word.Application", the string you pass to the COM() constructor. Run Regedit.exe

visual c++ 2010 errors importing User32.dll into 64bit win7

被刻印的时光 ゝ 提交于 2019-12-31 02:46:20
问题 Running visual c++ 2010 on 64bit win7, this line #include "C:\Windows\SysWOW64\user32.dll" its the correct path, the errors however include variations of 1>C:\Windows\SysWOW64\user32.dll(1): error C2018: unknown character '0x3' 1>C:\Windows\SysWOW64\user32.dll(1): error C2018: unknown character '0x4' 1>C:\Windows\SysWOW64\user32.dll(1): error C2018: unknown character '0x40' 1>C:\Windows\SysWOW64\user32.dll(1): error C2146: syntax error : missing ';' before identifier 'ÿÿ¸' 1>C:\Windows

List of DLLs loaded by specific process by its name

隐身守侯 提交于 2019-12-31 00:45:11
问题 I'm trying to list dll(s) loaded to processe with the following code: Process[] ObjModulesList = Process.GetProcessesByName("iexplore"); foreach (Process prc in ObjModulesList) { ProcessModuleCollection ObjModules = prc.Modules; foreach (ProcessModule objModule in ObjModules) { string strModulePath = objModule.FileName.ToString(); Console.WriteLine(strModulePath); } } I'm getting error A 32 bit processes cannot access modules of a 64 bit process. I tried to run my process as administrator,

different behaviour or sqrt when compiled with 64 or 32 bits

帅比萌擦擦* 提交于 2019-12-30 18:30:09
问题 I'm using sqrt() function from math library, when I build for 64 bit using -m64 I'm getting correct result but when I build for 32 bit I have very inconsistent behaviour. For example on 64bit double dx = 0x1.fffffffffffffp+1023; sqrt(dx); // => 0x1.fffffffffffffp+511 sqrt(0x1.fffffffffffffp+1023);// => 0x1.fffffffffffffp+511 (which I believe is the correctly rounded result, verified with mpfr) But on 32 bit same input value it behaves differently. double dx = 0x1.fffffffffffffp+1023; sqrt(dx)

nUnit Exception on a 64 bit Machine

僤鯓⒐⒋嵵緔 提交于 2019-12-30 17:59:13
问题 I have an MVC 3.0 app. My testing framework is nUnit 2.4.8.0. I started this code on a 32 bit machine, and recently started using a 64 bit machine. I just as recently upgraded the project to .NET 4.0. My application runs fine - I am able to hydrate my objects from the database appropriately. The issue is when I run my integration tests. The tests fail, and give an exception I've never seen before: NHibernate.ADOException : cannot open connection ----> System.BadImageFormatException : An

Android JNI: 32-bit compatability with 64-bit devices?

喜你入骨 提交于 2019-12-30 12:15:41
问题 I have some libraries that use native components, the libraries are built with NDK for 32 bit Arm architectures. now we have 64-bit processors on modern devices, so I'm wondering if the libraries will work. In my situation, I don't have the source code files of the native library, just the SO files, I can't build them for 64-bits. So will the 32-bits libraries run on 64-bits processors? or I have to re-build them? ** EDIT ** In my scenario I have the following: 1- I distribute the APK

Loading a 32-bit dll in a 64-bit process [duplicate]

末鹿安然 提交于 2019-12-30 11:03:42
问题 This question already has answers here : Target 32 Bit or 64 Bit native DLL depending on environment (3 answers) DllImport - An attempt was made to load a program with an incorrect format [duplicate] (1 answer) Closed 5 years ago . I want my C# application to conditionally run a native method, conditionally choosing to run either the x86 or the x64 version of the dll. Whenever I try to load the 32 bit dll I get the below error: Unhandled Exception: System.BadImageFormatException: An attempt

Use 32-bit version of ODBC on 64-bit Windows 7?

浪子不回头ぞ 提交于 2019-12-30 06:17:06
问题 I'm having problem with ODBC and an application written with Visual Basic 6 (so it's 32-bit). It seems that the ODBC library of VB6 is not compatible with the 64-bit ODBC of Windows 7. The error code returned is -2147220992 and it's rambling about incompatible architectures. Can I install a 32-bit version of ODBC? Or any other alternatives? 回答1: use the 32-bit odbc manager to add your DSN: C:\Windows\SysWOW64\odbcad32.exe that should be able to see the 32-bit odbc driver. 回答2: You need to use

How can a 32-bit cmd.exe launch a 64-bit cmd.exe on Windows Server 2003 x64?

时光总嘲笑我的痴心妄想 提交于 2019-12-30 02:19:09
问题 This is a follow up to 7-Zip execution permissions on Windows Server 2008 64-bit . I'm trying to avoid having an overly complicated build process to make multiple 7-Zip EXE files. I just need a .cmd to kick off my Java process after reading some 64-bit registry entries. However, to succeed with a single EXE file, it needs to be 32 bit. The above question found a trick for getting Windows Server 2008 to detect a 32 bit cmd.exe and swap it to 64 bit. Is there a way to do this on Windows Server

Mac OSX 10.6 compiler: a puzzling experience with 32 vs 64 bit

一世执手 提交于 2019-12-30 01:17:34
问题 I have trouble understanding the gcc compiler provided by OSX 10.6 snow leopard, mainly because of my lack of experience with 64 bits environments. $ cat >foo.c main() {} $ gcc foo.c -o foo $ file foo foo: Mach-O 64-bit executable x86_64 $ lipo -detailed_info foo input file foo is not a fat file Non-fat file: foo is architecture: x86_64 However, my architecture is seen as an intel i386 type (I have one of the latest Intel Core2 duo MacBook) $ arch i386 and the compiler targets i686-apple