Use 32-bit jni libraries on 64-bit android

Found an explanation: 64-bit Android can use 32-bit native libraries as a fallback, only if System.loadlLibrary() can’t find anything better in the default search path. You get an UnsatisfiedLinkError if you force the system to load the 32-bit library using System.load() with the full library path. So the first workaround is using System.loadLibrary() instead of … Read more

Combine 32- and 64bit DLLs in one program

On 64-bit Windows 64-bit processes can not use 32-bit DLLs and 32-bit processes can’t use 64-bit DLLs. Microsoft has documented this: On 64-bit Windows, a 64-bit process cannot load a 32-bit dynamic-link library (DLL). Additionally, a 32-bit process cannot load a 64-bit DLL. You would need a 32-bit process that communicates with the 32-bit DLL … Read more

How to write assembly language hello world program for 64 bit Mac OS X using printf?

You didn’t say exactly what the problem you’re seeing is, but I’m guessing that you’re crashing at the point of the call to printf. This is because OS X (both 32- and 64-bit) requires that the stack pointer have 16-byte alignment at the point of any external function call. The stack pointer was 16-byte aligned … Read more

How to use Windows On-Screen Keyboard in C# WinForms

I am now launching the “Touch Keyboard” as opposed to the “On-Screen Keyboard” (which is the keyboard I wanted on Windows 8 anyway) with: string progFiles = @”C:\Program Files\Common Files\Microsoft Shared\ink”; string keyboardPath = Path.Combine(progFiles, “TabTip.exe”); this.keyboardProc = Process.Start(keyboardPath); This works on my Win7 and Win8, regardless of my 32-bit app on 64-bit OS. However, … Read more