64-bit

64-bit time_t in Linux Kernel

£可爱£侵袭症+ 提交于 2021-01-28 06:12:05
问题 I have compiled kernel 3.19.1 but still have a problem with time_t . Just a simple program with cout << sizeof (time_t); gives size of 4 bytes, not 8 bytes as was my intention. Should I switch on a particular option during make menuconfig? 回答1: Currently time_t is just long in kernel: see __kernel_time_t type definition. So if long type on your CPU is 32-bit long, time_t also is 32-bit long. Basically, if you have 32-bit CPU -- long type on your system is also 32-bit long. If you have 64-bit

How can I know the ACTUAL maximum number of elements a .net array of a given type can be allocated?

我与影子孤独终老i 提交于 2021-01-27 20:35:51
问题 I know that all arrays in .net are limited to 2 GB, under this premise, I try not to allocate more that n = ((2^31) - 1) / 8 doubles in an array. Nevertheless, that number of elements still doesn't seem to be valid. Anyone knows how can I determine at run time the maximum number of elements given sizeof(T)? I know that whatever quantity approaching that number is just a lot of elements but, for all intents and purposes, let's say I need it. Note: I'm in a 64-bit environment, with a target

The most correct way to refer to 32-bit and 64-bit versions of programs

青春壹個敷衍的年華 提交于 2021-01-27 20:32:23
问题 This question is about terminology for 32-bit vs. 64-bit x86. If I have 2 directories with source code of the same program - one for 32-bit Windows and another for 64-bit Windows, what will be the more correct names for these folders: x86-64 and x64 ? or IA-32 and x64 ? I already have read some web resources, but can't understand. Just for the record: https://superuser.com/questions/179919/x86-vs-x64-why-is-32-bit-called-x86 Difference between x86, x32, and x64 architectures? https://en

Open Excel 2016 file failed with HRESULT: 0x800706BE

倖福魔咒の 提交于 2021-01-27 19:58:19
问题 The simple VB.NET code for opening up an existing Excel file consistently failed at open command with the following error: The remote procedure call failed. (Exception from HRESULT: 0x800706BE) I've searched Stack Overflow and Microsoft sites for this error, it looks like no one has a definitive answer. But one thing consistent seems to be all happens with 64bit Excel. Anyway, I am here asking for help with this problem. Below is my very simple code: Imports Microsoft.Office.Interop.Excel Dim

C# 4.0 How to get 64 bit hash code of given string

ⅰ亾dé卋堺 提交于 2021-01-26 23:53:16
问题 I want to get 64 bit hash code of given string. How can i do that with fastest way ? There is a ready method for get 32 bit hash code but i need 64 bit. I am looking for only integer hashing. Not md5. Thank you very much. C# 4.0 回答1: This code is from Code Project Article - Convert String to 64bit Integer static Int64 GetInt64HashCode(string strText) { Int64 hashCode = 0; if (!string.IsNullOrEmpty(strText)) { //Unicode Encode Covering all characterset byte[] byteContents = Encoding.Unicode

Bug with For Each enumeration on x64 Custom Classes

扶醉桌前 提交于 2021-01-20 16:08:25
问题 I have found a bug in VBA a few months ago and was unable to find a decent workaround. The bug is really annoying as it kind of restricts a nice language feature. When using a Custom Collection Class it is quite common to want to have an enumerator so that the class can be used in a For Each loop. This can be done by adding this line: Attribute [MethodName].VB_UserMemId = -4 'The reserved DISPID_NEWENUM immediately after the function/property signature line either by: Exporting the class

Bug with For Each enumeration on x64 Custom Classes

烂漫一生 提交于 2021-01-20 16:07:52
问题 I have found a bug in VBA a few months ago and was unable to find a decent workaround. The bug is really annoying as it kind of restricts a nice language feature. When using a Custom Collection Class it is quite common to want to have an enumerator so that the class can be used in a For Each loop. This can be done by adding this line: Attribute [MethodName].VB_UserMemId = -4 'The reserved DISPID_NEWENUM immediately after the function/property signature line either by: Exporting the class

x64 DLL export function names

[亡魂溺海] 提交于 2021-01-20 15:15:26
问题 I am trying to port a 32-bit dll (and application) to 64-bit and I have managed to build it without errors. When trying to load it with my 64-bit application I noticed that the exported function names differ. This is how I export the functions: #ifdef __cplusplus extern "C" { #endif __declspec(dllexport) long __stdcall Connect(char * name, long size); #ifdef __cplusplus } #endif In Dependency Walker the exported functions have the following format: 32-bit: _Connect@8 64-bit: Connect In the

How to install GLUT on a 64 bit windows 7 for MS VS2010? [closed]

拜拜、爱过 提交于 2021-01-20 14:29:52
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . Can someone help me with a step by step tutorial on how to install GLUT on a Windows 7 64 bit system for MS VS2010? 回答1: Your GLUT download will come with .h files, .lib files, and .dll files. Place the .h files

x64 assembly, ret register and variables

冷暖自知 提交于 2021-01-20 08:16:29
问题 I'm relatively new to x64 assembly and im using it in conjunction with VS2010. I'm struggling to get a handle on the return values from a proc and I can't really find quality documentation for beginners. .data MyByte db 10 .code GetValueFromASM proc mov rax, 28 mov rbx , 19 lea rax, MyByte mov rax, 10 mov eax, 11 mov ecx, 100 ret GetValueFromASM endp end The Ret instruction is printing out the value of eax in my c++ front end, is there some sort of default return register or can you specify