32bit-64bit

C# - mixed assembly (C++/CLI, DirectX native) interplay (32/64bit)

允我心安 提交于 2019-12-10 17:26:00
问题 I have a problem related to this question. Two players: C# application Mixed assembly used by 1) The application has to support anything from Windows XP (32bit) to Windows 7 (32 & 64bit). The assembly is complicated in different ways. It contains managed C++/CLI code and some native C++ classes dancing with native DirectX. It also is linked to a few 32bit native dll's w/o source access (containing C++ classes with import libraries). Things are working well in 32bit environments (XP and 7

my c++ and c# interop crashes in 64 bit, why? pointer size?

你说的曾经没有我的故事 提交于 2019-12-10 17:03:23
问题 i got a native 32 bit dll (no source) which runs as a plugin in an application i use. I've done another native dll myself which will communicate with that plugin in order to create and update the plugin's controls. From that dll i've exported the functions I need in order to control the plugin from my c# application (with p/invoke). here's the code: h file: #pragma once #include "include\SpoutControls.h" extern "C" { __declspec(dllexport) void InitializeControls(char *sendername, int

Starting a jar with double click starts in 32bit JVM, but from console in 64bit JVM

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:56:47
问题 Since I'm using native libraries I have different JARs for 32bit and 64bit platforms. Now when there are two JVMs installed on the system, one 32bit and one 64bit I face this behaviour: Double clicking the 32bit JAR -> works Double clicking the 64bit JAR -> App doesn't start Starting the 32bit JAR from console -> Error: This Java instance does not support a 32-bit JVM.Please install the desired version. Starting the 64bit JAR from console -> works On Mac I can start the 32bit JAR from console

Will an int be 32bit and a long 64bit regardless of whether the system is 32 or 64 bit?

拥有回忆 提交于 2019-12-10 15:12:35
问题 In java, is an int guaranteed to always be of 32bit size and a long of 64bit size regardless of whether the architecture is 32 or 64 bit? 回答1: Java is platform independent. So int is 32-bits, and long is 64-bit. 回答2: The Java Tutorial page on primitive data types specifies the fixed sizes and makes no mention of underlying architecture having any influence int: The int data type is a 32-bit signed two's complement integer. It has a minimum value of -2,147,483,648 and a maximum value of 2,147

How to start Oracle SQL Developer 4 using 32 bit JDK on Win 64?

梦想的初衷 提交于 2019-12-10 14:49:48
问题 I need to connect to a database and use a wallet file. If i try with my SQL Developer i end up with "ocijdbc.dll: Cant load IA 32bit .dll on a AMD 64-bit platform." I have both installed JDK 32 bit (in C:Prog32bit) and JDK 64 bit (C:Prog) for development. I tried to set JavaHome in sqldeveloper/bin/sqldeveloper.conf manually SetJavaHome C:\Program Files (x86)\Java\jdk1.7.0_51 My next step was to edit %USER_HOME%/sqldeveloper/sqldeveloper.conf and I set SetJavaHome there too, but none didn't

compile 32bit code from cygwin64

时光总嘲笑我的痴心妄想 提交于 2019-12-10 14:43:19
问题 I installed Cygwin64 on a win7-64 with gcc dev tools and I just noticed that it produces 64bit binaries. (Well, not that surprising :o) Is there a mean to make it producing some 32bit binaries? I am compiling the socat tool for windows, compiled in 64bit it is working, but I am trying to make another version suitable for an XP-32. The configure script does not seem to support a -b 32 switch (that I must have seen for ming64 from this thread, and if I try to specify the -m32 switch in CFLAGS

Compiling 32-bit Qt application using 64-bit package

安稳与你 提交于 2019-12-10 13:18:06
问题 I'm using Windows 8 64-bit, Qt 5.0.2 for Windows 64-bit and Visual Studio 2012. I have no trouble compiling and running my application on 64-bit OS, but apparently it doesn't work on 32-bit OS. Is there a way to compile 32-bit application with what I have, or should I install Qt for Windows 32-bit? (I download Qt from here.) If it's possible, I would like a hint at where that option is. I'm using Qt Creator. 回答1: It's not possible with 64bit library, but you can download and install the

Run AnyCPU as 32-bit on 64-bit systems

大憨熊 提交于 2019-12-10 13:06:22
问题 We are using a Third-Party assembly that seems to be compiled as AnyCPU. However, we have a number of installations of our application where this leads to problems. This Third-Party assembly makes use of the oracle dataaccess library, and will not work on 64-bit machines where only a 32-bit oracle client is installed. Installing a additional 64-bit oracle client would be possible, but also expensive (takes a lot of time, many machines have to be updated etc.) Is there a way to force a AnyCPU

Is there a standard way to determine at compile-time if system is 32 or 64 bit?

断了今生、忘了曾经 提交于 2019-12-10 12:57:58
问题 I need to set #ifdef - checks for conditional compile. I want to automate the process but cannot specify the target OS/machine. Is there some way that the pre-compiler can resolve whether it it is running on 32-bit or 64-bit? (Explanation) I need to define a type that is 64 bits in size. On 64bit OS it is a long, on most others it is a long long. I found this answer - is this the correct way to go? [edit] a handy reference for compiler macros 回答1: The only compile check you can do reliably

Is it possible to write a Debugger Visualizer for Visual Studio 2010 to display 64-bit .NET programs?

☆樱花仙子☆ 提交于 2019-12-10 11:14:45
问题 Is it possible to write a Debugger Visualizer for Visual Studio 2010 to display data of 64-bit .NET programs? I already write them for 32-bit programming, but I can't manage to use or compile them for use with 64-bit applications. Any suggestions? 回答1: I've just gone through the same issue. I use Visual Studio 2013 and our project at work is 64 bit. I built a 64 bit version of my custom visualizer and placed it into the Visual Studio installation folder as per MSDN walk-through. I think