32bit-64bit

Undefined symbols for architecture x86_64 - Mavericks (Yosemite, El Capitan…)

╄→尐↘猪︶ㄣ 提交于 2019-12-28 03:38:11
问题 EDIT : If you fall on this post, you may want to jump directly to the answer I sent a post about my confusion earlier this morning machine type (C++ librairies) : i386 vs x86_64 But I guess I did a mistake by being not precise. So I decided to give an example of situations I face and that I can not understand. STEP 1 I build a library on machine A, a 2 years old mac with OS x 10.7.5 (that I guess is 64 bits; my guess being based on the commands you will see below in Additional Info) using the

How to start a 64-bit process from a 32-bit process

给你一囗甜甜゛ 提交于 2019-12-27 20:05:16
问题 I am trying to run a 64 bit executable (java.exe) from our 32-bit .NET application. I am using Process class and invoking cmd /c <command name> in order to support all possible commands (like dir , cd etc). The problem is that on my machine I installed 64-bit version of JRE and java.exe is only available from C:\Windows\System32 folder (x64). I have tried explicily starting 64 bit version of cmd.exe by calling C:\Windows\System32\cmd.exe but it gets redirected to SysWOW64 due to calling

Detect 32-bit or 64-bit of Windows

£可爱£侵袭症+ 提交于 2019-12-27 17:42:21
问题 I want to detect whether the current Windows OS is 32-bit or 64-bit. How to achieve it using C++? I don't want processor type I want OS's bit type. This is because you can install 32-bit OS on 64-bit processor. 回答1: The function to call is IsWow64Process or IsWow64Process2. It tells your 32-bit application if it is running on a 64 bit Windows. If the program is compiled for 64 bits, it will already know. 回答2: If your code is 64-bit and running, then Windows is 64-bit - nothing to check. If

What's bad about shifting a 32-bit variable 32 bits?

微笑、不失礼 提交于 2019-12-27 12:07:35
问题 I recently picked up a copy of Applied Cryptography by Bruce Schneier and it's been a good read. I now understand how several algorithms outlined in the book work, and I'd like to start implementing a few of them in C. One thing that many of the algorithms have in common is dividing an x-bit key, into several smaller y-bit keys. For example, Blowfish's key, X, is 64-bits, but you are required to break it up into two 32-bit halves; Xl and Xr. This is where I'm getting stuck. I'm fairly decent

E2045 Bad object file Format:“XXX.obj”

最后都变了- 提交于 2019-12-25 17:17:22
问题 I am working on one migration project from x32 bit to x64 . Here I am using this code: {$L com_1.obj} {$L com_is1.obj} {$L com_2.obj} But while compiling code I am getting error as [dcc64 Error] XXX.dpr(919): E2045 Bad object file format: 'E:\MyProj\com_sha.obj' I am not able to trace why it is happening. Is it due to 32 bit obj file used for compiling x64 bit delphi project? If it is I have also tried to create a obj file with x64 bit environment. Can anyone please help me on this? I am

How can a 32 bit client communicate with a 64 bit server if long type is passed?

夙愿已清 提交于 2019-12-25 05:35:30
问题 We have a 32-bit C++ GUI application running on 32 bit windows 7. We are planning to migrate our server with C++ apps to 64-bit linux. We have noticed that long types are larger in 64 bit. This will be incompatible with the client-server message passing from 64-bit to 32-bit. What is a good way to solve this incompatibility? Do we need to change the code? How? or Do we use a third party software to do the conversion? What software is it? 回答1: That's why there is the standardized int32_t and

Lightswitch v1 Desktop Application doesn't work on 64bit client

ε祈祈猫儿з 提交于 2019-12-25 05:31:51
问题 I have made a Lightswitch v1 (2011) Desktop application on Visual Studio 2010 Professional. My OS is 32 bit Windows 7 Professional. The application connects to an SQL Server 2005 database, using SQL Server Authentication. On clients running 64 bit Windows, my application is unable to load data. (It shows the dreaded red-X, that everyone using Lightswitch is all too familiar with). I was able to enable tracing and get a detailed error message, but still don't know what to do about it. Error

openGL object not found for architecture x86_64

a 夏天 提交于 2019-12-25 04:12:29
问题 I am working on a project, using both opencv and openGL, compiling with Cmake on OSX. I get this error message: _glTexImage2D", referenced from: matToTexture(cv::Mat) in getimages.cpp.o ld: symbol(s) not found for architecture x86_64 I guess I have to use openGL 64bit instead of 32bit, but I don't know how to specify this. 回答1: When compiling for MacOS X you must add the OpenGL framework. The compiler command line option is -Framework OpenGL 来源: https://stackoverflow.com/questions/16731572

Is it possible to load a 64-bit dll into a 32-bit process?

≡放荡痞女 提交于 2019-12-25 03:37:12
问题 Is it possible to load a 64-bit dll into a 32-bit process ? Generally speaking, I know it can not happen. Yet, maybe there are some exceptions ? 回答1: No, and neither a 64-bit process can load a 32-bit DLL. If you're on a 64 bit OS, you can load the DLL in a 64-bit process and have it communicate with your 32-bit process through IPC. If you're on a 32 bit OS, you're out of luck. 回答2: But new computer bought today at least have 4G ram. We cannot prevent using 64-bit OS to avoid problem. We must

C# sizeof object pointer (SAFE context)

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:34:26
问题 Ok while sizeof(Myenum) and sizeof(int) works, I would like to use sizeof(object), but I don't want the size of the object, but the size of pointer... only for portability reason, I need to know if is a 64 bit pointer or 32 bit pointer, I can avoid using sizeof if is ok with conditional compilation, but I don't know if there are constants to check if we are on a 32 bit system instead of 64 bit Thanks for suggestions 回答1: Use IntPtr.Size . Reference : Simple way to check if you're on a 64-bit