32bit-64bit

Qt - write to registry 32/64 issue

南楼画角 提交于 2019-12-12 06:36:29
问题 I'm writing a Qt application for windows, and using windows 7 64 bit. The application has to write to the registry, I tried to use QSettings class, but as I found in the documentation: On Windows, for 32-bit programs running in WOW64 mode, settings are stored in the following registry path: HKEY_LOCAL_MACHINE\Software\WOW6432node\MySW Is there a way to override it and write to: HKEY_LOCAL_MACHINE\Software\MySW directly? Clarification: The application is writing to the registry, the keys

Change proxy of IE c# for win 7 64 bit(test using httperbrequest to make sure registry change)

南楼画角 提交于 2019-12-12 06:31:09
问题 I have been testing my application on 32 bit and it is working fine but as soon it switches to 64 bit OS then there is a problem it changes proxy for one time but never again it keeps and tests same proxy for the rest of the loop .I came across some posts that shows that there is some difference bit 32 and 64 bit registry and have written a code but it dose not work well on 64 bit environment [DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]

SSRS must Excel be installed on Reporting server to use Excel as a Data SOURCE?

假装没事ソ 提交于 2019-12-12 06:24:26
问题 If users would like to use Excel as a data source for Report Builder (of SSRS - SQL Server Reporting Services), does Excel need to be installed on the Report Server? We also have issues with 32-bit ODBC drivers vs 64 bit drivers but I want to rule out (or rule in) that Excel needs to be on the Server. Thanks! 回答1: No, you don't have to install Excel. The MS Business Intelligence Development Studio (ie. Visual Studio) is 32-bit and you need 32-bit ODBC drivers for report development. I'll

CPU Process time using GetProcessTimes and FileTimeToSystemTime do not work in 64 bit win

这一生的挚爱 提交于 2019-12-12 05:08:52
问题 I am trying to measure CPU time. It works great on Win 32, but on 64 bit, it says: error LNK2019: unresolved external symbol __imp_GetProcessTimes referenced in function "unsigned int __cdecl getWINTime(void)" (?getWIN32Time@@YAIXZ) It has similar error for FileTimeToSystemTime error LNK2019: unresolved external symbol __imp_FileTimeToSystemTime referenced in function "unsigned int __cdecl getWINTime(void)" (?getWIN32Time@@YAIXZ) Function itself is not that important there is no issue with it

Reading data from 32-bit Access db using 64-bit R

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:37:02
问题 System specs: 64-bit OS (Win7), 64-bit R (3.3.3), 32-bit MS Access (2016). I have data in a 32-bit .accdb file and I want to read it into R. I tried this: con <- odbc::dbConnect(odbc::odbc(), dsn="MS Access Database") but saw the following error: Error: nanodbc/nanodbc.cpp:950: IM014: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application Web search indicated that the bit difference between R and the database is the culprit. The

Convert 64-bit Hex to nanoseconds timestamps

早过忘川 提交于 2019-12-12 02:52:49
问题 I have timestamps that are represented in 64-bit hex. Is there a way to convert it to nanosecond timestamps? (preferably in c++) 回答1: Found it! I used std::hex to convert a hex value to long, which in turn gives me the nanosecond precision. 来源: https://stackoverflow.com/questions/36731370/convert-64-bit-hex-to-nanoseconds-timestamps

Running a 32-bit window service which loads a 32-bit dll as a 64-bit service

╄→гoц情女王★ 提交于 2019-12-12 02:08:45
问题 Here's the situation - A window service which I am coding uses Linq2Excel, which insist the invoking application to be complied against x86. However, the window service is to be installed on a 64-bit Windows server. Using corflags, I am able to get the 32-bit window service to install. However, it'll refuse to load Linq2Excel. Here's the exception in all its glory: Exception occurs: Could not load file or assembly 'LinqToExcel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of

Java JNI native library loads on 64bit and 32bit, but doesn't run on 32bit

三世轮回 提交于 2019-12-12 01:36:55
问题 I have a JNI application working on my main computer which is Windows 7 64-bit, but it fails to work on my laptop which is Windows XP 32-bit. On the laptop, the 32-bit version of the native DLL loads without an UnsatisfiedLinkError , but I get the error when the actual native method is called. Here is how I compile my DLLs using MinGW: cd bin javah MyClass move /Y MyClass.h ../ "%mingw64%\bin\g++" -shared -I"C:\Program Files\Java\jdk1.8.0_05\include" -I"C:\Program Files\Java\jdk1.8.0_05

P/Inovke parameters offset by 32 bits when compiled in 64 bit

微笑、不失礼 提交于 2019-12-12 00:32:20
问题 Follow up to PInvoke byte array to char not behaving properly in 64 bit. (Stale question and my suspicions were wrong, thus the title and descriptionwas unfitting). I am using P/Invoke to call C++ code from C#. I have both the C# and C++ projects set to build in x64 in the build configurations of VS. when I run this program, the parameters of the P/Invoke call are shifted by 32 bits as follows C# : |Parameter 1|Parameter 2|Parameter 3|Parameter 4| | | | | | V V V V V C++: |Parameter 1

Find module handle in Windows x64 from external process

十年热恋 提交于 2019-12-11 19:44:50
问题 How to find module base address by name (in another process), in Windows x64? ProcessModuleCollection finds only: ntdll.dll wow64.dll wow64win.dll wow64cpu.dll Where can find an example of functions for search module base addess by name (which works in x32 and x64 Windows version)? 回答1: The ProcessModuleCollection instance returned by calling Process.Modules has the information you need. Provided that both processes have the same bitness. So, if the target process is a 32 bit process, make