64-bit

Can't display PDF from HTTPS in IE 8 (on 64-bit Vista)

↘锁芯ラ 提交于 2019-12-17 03:56:22
问题 I have a home-grown HTTPS server that serves up simple files (it's embedded within my app). It works great -- been using it forever. Recently added SSL support -- Chrome, FireFox and IE all like it and load pages just fine. The problem I find is when I try to load a PDF file over the HTTPS connection. For some reason, the PDF never displays in IE 8 (64-bit on 64-bit Vista). It works fine in Chrome. And it works fine in IE 8 when using plain HTTP -- only fails when using HTTPS. NOTE: When IE 8

Targeting both 32bit and 64bit with Visual Studio in same solution/project

五迷三道 提交于 2019-12-17 02:53:12
问题 I have a little dilemma on how to set up my visual studio builds for multi-targeting. Background: c# .NET v2.0 with p/invoking into 3rd party 32 bit DLL's, SQL compact v3.5 SP1, with a Setup project. Right now, the platform target is set to x86 so it can be run on Windows x64. The 3rd party company has just released 64 bit versions of their DLL's and I want to build a dedicated 64bit program. This raises some questions which I haven't got the answers to yet. I want to have the exact same code

Fast computing of log2 for 64-bit integers

牧云@^-^@ 提交于 2019-12-17 02:36:04
问题 A great programming resource, Bit Twiddling Hacks, proposes (here) the following method to compute log2 of a 32-bit integer: #define LT(n) n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n static const char LogTable256[256] = { -1, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, LT(4), LT(5), LT(5), LT(6), LT(6), LT(6), LT(6), LT(7), LT(7), LT(7), LT(7), LT(7), LT(7), LT(7), LT(7) }; unsigned int v; // 32-bit word to find the log of unsigned r; // r will be lg(v) register unsigned int t, tt; //

“An attempt was made to load a program with an incorrect format” even when the platforms are the same

谁说胖子不能爱 提交于 2019-12-16 20:12:31
问题 I'm calling functions from a 32-bit unmanaged DLL on a 64-bit system. What I get is: BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) At first, I had my projects set to the Any CPU platform, so I changed them both to x86, but this error is still occurring. That's really the only fix I know for this. The DLLs aren't corrupt or anything, because I can use them with other programs (that I don't have the source to). I

Batch File Querying Registry in 64-Bit Vista

a 夏天 提交于 2019-12-14 04:26:37
问题 Hi guys me again :) I have a problem with a batch file I wrote. It works fine on 32-bit, but apparently it doesn't work on 64-bit systems, and I don't know why because I do not have access to a 64-bit system. This is the code that works on Vista 32-bit system @echo off Set Reg.Key=HKLM\SOFTWARE\Malwarebytes' Anti-Malware Set Reg.Val=InstallPath For /F "Tokens=2*" %%A In ( 'Reg Query "%Reg.Key%" /v "%Reg.Val%" ^| Find /I "%Reg.Val%"' ) Do Call Set MBAMPATH=%%B Can someone re-write it to work

How to bundle dependency .dll files with main product in WiX

时光总嘲笑我的痴心妄想 提交于 2019-12-14 04:10:04
问题 I am creating a wix installer for a .NET project with many dependencies. Currently, I have a working .msi installer, but as expected all the dependency .dll's (as well as a resources folder) are placed in the same directory as the installed application rather than being bundled with it. Reading the answer to WIX Bundle Creation, it seems possible to keep my Product as is in one file and have another file with a Bundle referencing this product, but I cannot seem to find any examples of this.

.Net 3.5 Windows Forms Application: x86 vs x64 load times on 64 bit Vista

一个人想着一个人 提交于 2019-12-14 03:49:32
问题 We are developing a Winforms application and in the process of optimizing the start-up time. The app runs on 64 bit Vista machines. In our testing we found what seems like a counter intuitive result. All else equal, targeting 32-bit vs 64-bit loads in half the time. Can anyone shed some light as to why? Thanks. [Edit] We deploy the app via ClickOnce which, from our research starts apps in a unique sandbox. Therefore it always cold-starts so looking to improve performance here was fruitless.

How to run an API made for 32-bit on a 64-bit machine?

╄→尐↘猪︶ㄣ 提交于 2019-12-14 03:45:00
问题 I'm writing a java application which has to communicate with has to communicate with an XBee radio over a usb-cable.To do this , I use the xbee-java API (http://code.google.com/p/xbee-api/) On my old 32-bit machine it all worked fine . But when I imported the project to a 64-bit machine , it throws immediately an exception which says :" Can't load IA 32-bit .dll on a AMD 64-bit platform" . I don't have any idea how I can solve this problem . the error code : java.lang.UnsatisfiedLinkError: C:

64 Bit application communicating with 32bit process

笑着哭i 提交于 2019-12-14 01:35:37
问题 I have 32 bit application using 32 bit third party library. Now I have to make my application 64 bit , so that it can take advantage of 64 bit address space ( large memory ). Since I can not load 32bit library into 64bit application process, I am thinking of creating 32bit executable wrapper over third party library and communicate from my 64 bit app using IPC ( named pipe/socket ). So my question is would their any issue in doing so ?. Also if I have to install my application on 64 bit

Meaning of intfmt: db “%d”, 10, 0 in assembly

蓝咒 提交于 2019-12-14 01:22:44
问题 I recently saw this at the top of one of my assembly files and realised I had spent ages using it in the process of printing integers without actually realising where it came from originally (used in my basic assembly template) or what the 10, 0 on the end means: section .data intfmt: db "%d", 10, 0 Could anyone break this down and explain the different components, specifically of line 2? I am now trying to read input using scanf and it seems this format isn't working correctly for this.