64-bit

64-bit Alternative for Microsoft Jet

女生的网名这么多〃 提交于 2019-12-18 04:26:13
问题 Microsoft has chosen to not release a 64-bit version of Jet, their database driver for Access. Does anyone know of a good alternative? Here are the specific features that Jet supports that I need: Multiple users can connect to database over a network. Users can use Windows Explorer to copy the database while it is open without risking corruption. Access currently does this with enough reliability for what my customers need. Works well in C++ without requiring .Net. Alternatives I've

Process command line in Linux 64 bit [duplicate]

半腔热情 提交于 2019-12-18 04:22:06
问题 This question already has an answer here : What happens if you use the 32-bit int 0x80 Linux ABI in 64-bit code? (1 answer) Closed 2 years ago . I have problems accessing the process command line from Linux 64 bit Assembly program. To reproduce this with minimal code, I made this 32-bit program which prints first 5 characters of the program name: .section .text .globl _start _start: movl %esp, %ebp movl $4, %eax # write movl $1, %ebx # stdout movl 4(%ebp), %ecx # program name address (argv[0]

Win32 API to tell whether a given binary (EXE or DLL) is x86, x64, or ia64

可紊 提交于 2019-12-18 04:16:28
问题 I am trying to find a programmatic way to tell if a binary is x86, x64, or ia64. Platform: Windows. Language: c/c++. Background: Before trying to load a third-party dll, I need to find out its bitness. Appreciate any pointers. 回答1: For EXEs use GetBinaryType(...) Here is same question for manged exe. For DLLs (and EXEs) Use the ImageNtHeader(...) to get the PE data of the file and then check the IMAGE_FILE_HEADER.Machine field. Here is some code I found using Google Code Search No Cleanup and

64 bit unix timestamp conversion

不羁岁月 提交于 2019-12-18 04:06:28
问题 Is there any C++ implementation of 64 bit unix timestamp conversions for 32 bit systems? I need to convert struct tm to 64 bit integer and vice versa, including leap years, timezones, UTC. Also need it portable, at least for GNU/Linux and Windows. 回答1: You need: typedef long long time64_t; time64_t mktime64 (struct tm *t); struct tm *localtime64_r (const time64_t *t, struct tm *p); 回答2: The function converting a struct tm* to a time_t is mktime . You can find many implementations of it, eg.

64 bit unix timestamp conversion

人走茶凉 提交于 2019-12-18 04:06:05
问题 Is there any C++ implementation of 64 bit unix timestamp conversions for 32 bit systems? I need to convert struct tm to 64 bit integer and vice versa, including leap years, timezones, UTC. Also need it portable, at least for GNU/Linux and Windows. 回答1: You need: typedef long long time64_t; time64_t mktime64 (struct tm *t); struct tm *localtime64_r (const time64_t *t, struct tm *p); 回答2: The function converting a struct tm* to a time_t is mktime . You can find many implementations of it, eg.

System.BadImageFormatException caused by NUnit project

空扰寡人 提交于 2019-12-18 03:54:54
问题 Good day everyone. I have been having the same problem all day at work and am struggling to find any new paths to go down. I am getting the following error when my solution builds on server. I have no problem running/debugging all tests in the solution and it builds fine. Both server and my PC are x64. I have followed a lot of advice which I have found to no avail. I have set Platform Target to x86 for all projects in my solution under all configurations. I am aware that there is an nunit

How to force /usr/bin/gcc -> /usr/bin/gcc -m32?

余生颓废 提交于 2019-12-18 03:46:22
问题 I have bad Makefile(s) of a large bundled software distribution. In some point compiler always "forgets" that I want to compile in 32 bit program. This causes that part of the programs have 64 bit libraries and others have 32 bit libraries. How can I force -m32 option every time that I run gcc? br, Juha P.S. My environment is mixed 32/64 bit (macbook5.1, snow leopard). Alternatively: How can I make my system purely 32 or 64 bits? edit: Emphasis on the bad Makefiles that override the global

Does Lua make use of 64-bit integers?

ぃ、小莉子 提交于 2019-12-18 03:43:34
问题 Does Lua make use of 64-bit integers? How do I use it? 回答1: Compile it yourself. Lua uses double-precision floating point numbers by default. However, this can be changed in the source ( luaconf.h , look for LUA_NUMBER ). 回答2: require "bit" -- Lua unsigned 64bit emulated bitwises -- Slow. But it works. function i64(v) local o = {}; o.l = v; o.h = 0; return o; end -- constructor +assign 32-bit value function i64_ax(h,l) local o = {}; o.l = l; o.h = h; return o; end -- +assign 64-bit v.as 2

How to detect that a given PE file (exe or dll) is 64 bit or 32 bit

旧时模样 提交于 2019-12-18 03:42:01
问题 I need to detect whether a given .dll or .exe file is 32 bit or 64 bit At the moment I have only one solution: read the PE Header from the specified file and take the 'Machine' field from there. ( Specification: Microsoft Portable Executable and Common Object File Format Specification (.docx file) at section "3.3. COFF File Header (Object and Image)" ) This field can take up to about 20 values. Three of them are: IMAGE_FILE_MACHINE_I386 ( == 32bit ) IMAGE_FILE_MACHINE_IA64 ( == 64bit ) IMAGE

How can I read 64-bit registry key from a 32-bit process?

不想你离开。 提交于 2019-12-18 03:41:53
问题 I've been using the value of key MachineGuid from HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography to uniquely identify hosts, but from 32-bit processes running on 64-bit computers, the value appears to be missing. I guess it's searching under Wow6432Node, where it is indeed missing. According to this you should be able to get to the right key by adding a flag, but below code still doesn't appear to do the job. What am I missing? const KEY_WOW64_64KEY=$0100; var r:HKEY; s:string; i,l