32bit-64bit

C++ int vs long long in 64 bit machine

旧巷老猫 提交于 2020-01-12 01:13:54
问题 My computer has 64 bit processor and when I look for sizeof(int) , sizeof(long) , and sizeof(long long) , it turns out that int and long are 32 bits, and long long is 64 bit. I researched the reason, and it appears that popular assumption telling that int in C++ fits machine's word size is wrong. As I understood it is up to compiler to define what will be the size, and mine is Mingw-w64. The reason for my research was understanding that if the usage of types smaller than word size is

C++ int vs long long in 64 bit machine

房东的猫 提交于 2020-01-12 01:13:42
问题 My computer has 64 bit processor and when I look for sizeof(int) , sizeof(long) , and sizeof(long long) , it turns out that int and long are 32 bits, and long long is 64 bit. I researched the reason, and it appears that popular assumption telling that int in C++ fits machine's word size is wrong. As I understood it is up to compiler to define what will be the size, and mine is Mingw-w64. The reason for my research was understanding that if the usage of types smaller than word size is

How to bind 64-bit and 32-bit executable into one?

浪子不回头ぞ 提交于 2020-01-11 05:13:06
问题 Alright so my idea was some way to bind both 64-bit and 32-bit Windows executables into one application so if it doesn't run the 64-bit version it would then try the 32-bit one. I was reading up about PE's and learned a little about MS-DOS Real Mode Stub and it says how it invokes an application (usually an error message). But every time I tried to do research about MS-DOS Real Mode Stub it seemed to only show error messages. So my idea was to overwrite the STUB with my 32-bit application. My

How to compile for 32bit with Eclipse

不羁的心 提交于 2020-01-10 14:10:42
问题 I'm currently writing a little program in c++ on my 64bit Ubuntu Pc. By default eclipse compiles the program for a 64bit architecture. Since I want to use my little program on my server which is still 32bit, I need to be able to compile my program for 32bit. How could can I do that in eclipse? I've been fiddling for a while with the settings but nothing worked... Cheers 回答1: I found the answer myself, after lots of searching and trying things out. This is a solution that works if you happen

Is it possible to read process memory of a 64 bit process from a 32bit app?

。_饼干妹妹 提交于 2020-01-09 11:08:01
问题 On windows 64 bit, I've got a 32 bit process that reads the memory of other 32 bit processes, and I'd like it to be able to read 64 bit processes too. ReadProcessMemory is being used to read the memory, but it has a 32 bit limitation. Is there any way of doing the equivalent of a ReadProcessMemory on a 64 bit process? I know I could write a 64 bit process and launch that from my 32 bit process to do the work, but I'm wondering if there's some other option so that I don't need to write a 64

Is it possible to read process memory of a 64 bit process from a 32bit app?

纵然是瞬间 提交于 2020-01-09 11:07:55
问题 On windows 64 bit, I've got a 32 bit process that reads the memory of other 32 bit processes, and I'd like it to be able to read 64 bit processes too. ReadProcessMemory is being used to read the memory, but it has a 32 bit limitation. Is there any way of doing the equivalent of a ReadProcessMemory on a 64 bit process? I know I could write a 64 bit process and launch that from my 32 bit process to do the work, but I'm wondering if there's some other option so that I don't need to write a 64

Compiling as AnyCPU produces assembly with 32BIT flag set on 64-bit machine

无人久伴 提交于 2020-01-07 02:27:06
问题 I've created a brand new .NET 4.5 WinForm project in Visual Studio 2013 on a 64-bit machine. After compiling, I run corflags in the .exe and the 32BIT flag is set. Version : v4.0.30319 CLR Header: 2.5 PE : PE32 CorFlags : 131075 ILONLY : 1 32BIT : 1 Signed : 0 When I take a look at Task Manager, it's also marked as a 32 bit process. I didn't add any references that would maybe force it to run in 32-bit mode. I took a look at the project file and didn't spot anything suspicious either. I can

TypeInitializerException thrown by ReportDocument constructor

你。 提交于 2020-01-06 08:51:40
问题 I have an ASP .NET web application which has references to assemblies from the 32-bit Crystal Reports runtime. (Installed from CRRedist2008_x86.msi) The server on which it has been deployed has a 64-bit Crystal Reports runtime. The form containing the CrystalReportViewer throws the following exception: System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.UnauthorizedAccessException: Retrieving the

TypeInitializerException thrown by ReportDocument constructor

我只是一个虾纸丫 提交于 2020-01-06 08:50:31
问题 I have an ASP .NET web application which has references to assemblies from the 32-bit Crystal Reports runtime. (Installed from CRRedist2008_x86.msi) The server on which it has been deployed has a 64-bit Crystal Reports runtime. The form containing the CrystalReportViewer throws the following exception: System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.UnauthorizedAccessException: Retrieving the

Is it true that 32Bit program will be out of memory, if other programs use too much, in 64bit windows?

走远了吗. 提交于 2020-01-06 03:36:25
问题 I am developing a 32 bit application and got out of memory error. And I noticed that my Visual Studio and a plugin (other apps too) used too much memory which is around 4 or 5 GB. So I suspected that these program use up all the memory addresses where my program is able to find free memory. I suppose that 32 bit can only use the first 4 GB, other memory it can not use at all. I don't know if I am correct with this, other wise I will look for other answers, like I have bug in my code. 回答1: