64-bit

Access a 32-bit Firebird database from a 64-bit app via ODBC

戏子无情 提交于 2019-12-24 05:11:11
问题 I'm running Win7 64-bit and Firebird 2.5.2. Is it possible to access a 32-bit Firebird database via ODBC from a 64-bit C++ application? My initial thought was that I could just install the 64-bit Firebird ODBC driver and it would work. Sure enough, after installing it the 64-bit ODBC control panel app shows the Firebird driver, but the connection fails when trying to point it to an .fdb file created with 32-bit Firebird. I'm picking the client library from the 64-bit firebird install as well

What is the fastest way to get the power of 2 less than a certain number?

我的梦境 提交于 2019-12-24 03:55:15
问题 I am using this logic: while ((chase<<(++n))< num) ; where chase=1 , n=0 initially and num is the value for which I want to find the power of 2 that is just less than it. After the loop I simply apply chase=1; chase<<(n-1); Although I get the correct answer, I am just trying to find the fastest way to do it. Are there any faster methods? 回答1: For positive integer v the power of 2 less or equal to v is 2^[log2(v)] (i.e. 1 << [log2(v)] ), where [] in [log2(v)] stands for rounding down . (If you

Is there any benefit of not using double on a 64bit (and using, say, float instead) processor?

百般思念 提交于 2019-12-24 03:29:15
问题 I always use double to do calculations but double offers far better accuracy than I need (or makes sense, considering that most of the calculations I do are approximations to begin with). But since the processor is already 64bit, I do not expect that using a type with less bits will be of any benefit. Am I right/wrong, how would I optimize for speed (I understand that smaller types would be more memory efficient) here is the test #include <cmath> #include <ctime> #include <cstdio> template

Alter Table doesn't work under MS Access 64 bit. Why?

不问归期 提交于 2019-12-24 03:27:58
问题 I am trying to write a simple function to resize a text field in MS Access 64 bit version under Windows 7. It fails with the error 3420, object invalid or no longer set. Why is this? Can't you alter a table in code anymore under MS Access 64bit version? Here is the code: Private Function ResizeSingleTextField(sTableName As String, _ sFieldName As String, _ iLength As Integer) ResizeSingleTextField = False Dim sSQL As String sSQL = "ALTER TABLE " & sTableName & " " _ & "ALTER COLUMN " &

compiling 64 bit linux kernel with gcc

南笙酒味 提交于 2019-12-24 01:55:26
问题 While trying to compile a 64 bit linux kernel using gcc, I see the following error : kernel/bounds.c:1: error: code model ‘kernel’ not supported in the 32 bit mode kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in This is what gcc -v reports : Using built-in specs. Target: i586-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/ bugzilla --enable-bootstrap --enable-shared -

How to get all of the registered file formats from VCL.Graphics… but 64bit

倖福魔咒の 提交于 2019-12-24 01:08:02
问题 In my 32bit application I'm using the FindRegisteredPictureFileFormats unit provided by Cosmin Prund => (How to get all of the supported file formats from Graphics unit?). I need the same but for 64bit. David Heffernan replied it had already a 64bit version. Can this code be made public ? Thanks a lot !! 回答1: I believe that this unit does what you are looking for. I've testing it on 32 bit and 64 bit Windows, with runtime packages and without. I've not tested it with top-down memory

User Mode Scheduler (UMS) returns ERROR_NOT_SUPPORTED

岁酱吖の 提交于 2019-12-24 00:24:16
问题 I want to use the Windows User-Mode Scheduler API but every sample C or C++ I have found in the internet fails. Invariably I get ERROR_NOT_SUPPORTED. My Computer is running Windows 10 Pro 64-bits in an x64 processor. I am using VS2015 and the application is an x64 console application. Notably not every call fails, in the 4 samples I've tested either EnterUmsSchedulingMode CreateRemoteThreadEx Fail with ERROR_NOT_SUPPORTED. Those are necessary to get things going, but for example

Why is CreateProcess failing in Windows Server 2003 64-bit?

与世无争的帅哥 提交于 2019-12-23 22:07:03
问题 We have a 32-bit application that launches other 32-bit applications during its process. The application is working fine on other 64-bit platforms but on Windows Server 2003 64-bit, we get an error trying to launch the apps: error 193 (not a valid 32 bit application) We can manually launch these applications on that system without any problem. I thought we had found the problem with this article, but our customer already has this patch on his system and the error is still occurring. If anyone

the application was unable to start correctly 0xc00007b

北慕城南 提交于 2019-12-23 17:27:58
问题 I have a win32 application. Trying to run in windows 7 64-bit OS in VisualStudio 2008. Have installed x64 Environment. So when i'm trying to run my project i'm getting this error "the application was unable to start correctly 0xc00007b". I have no link errors too. Anyone any suggestions please. 回答1: i got the same issue as you. I had a application Win32. When i converted this application Win32 to X64 with Visual Studio 2010, the application x64 is compiled successfully. But when i ran it, it

The maximum number of thread [duplicate]

若如初见. 提交于 2019-12-23 16:52:39
问题 This question already has answers here : What's the maximum number of threads in Windows Server 2003? (8 answers) Closed 6 years ago . What is the maximum number of thread in an application 32-bits and 64-bits developed in Delphi? I need to know what is the limit of threads running simultaneously on a 32-bit application, because I'm doing performance analysis and I want to let the OS manage the execution order of the threads that are waiting. 回答1: You might want to read this answer: https:/