64-bit

Convert RTF (Rich Text Format) code into plain text in Excel

 ̄綄美尐妖づ 提交于 2019-12-29 09:08:04
问题 I exporting a database query as Excel and I am getting rows with RTF formatting. How can I convert these fields into plain text? I've found answers that are pretty old, so I was wondering if anyone knows a way. 回答1: Another alternative can be using Microsoft Rich Textbox Control (but can't test it on x64 Office) Sub rtfToText() With CreateObject("RICHTEXT.RichtextCtrl") ' or add reference to Microsoft Rich Textbox Control for early binding and With New RichTextLib.RichTextBox .SelStart = 0 '

SetupDiCallClassInstaller throws ERROR_IN_WOW64 when compiled for 32 bit on a 64 bit machine.

放肆的年华 提交于 2019-12-29 08:59:08
问题 Calling SetupDiCallClassInstaller on a 64 bit machine when compiled for 32 bit returns false. GetLastError() == ERROR_IN_WOW64 All the other function calls work fine under 32bit, just this one is giving me problems. I'm wondering if anyone knows what I am doing wrong here. 回答1: As Hans Passant pointed as a comment to the question, you cannot call that function from a 32-bit process on a 64-bit Windows platform. When you try to do so anyway, you get an ERROR_IN_WOW64. The reason why you can't

How to do 64 bit multiply on 16 bit machine?

青春壹個敷衍的年華 提交于 2019-12-29 08:08:48
问题 I have an embedded 16 bit CPU. On this machine ints are 16 bit wide and it supports longs that are 32 bits wide. I need to do some multiplications that will need to be stored in 64 bits (e.g. multiply a 32 bit number by a 16 bit number). How can I do that with the given constraints? I do not have a math library to do this. 回答1: A suggestion in C. Note that this code probably will be easier to implement with inline assembler as carry detection in C doesn't seem that easy // Change the typedefs

64-bit Eclipse won't install .apk on Android emulator

给你一囗甜甜゛ 提交于 2019-12-29 08:08:25
问题 On Windows 7 64-bit, running Eclipse 3.6 64-bit, JDK (jdk1.6.0_23) 64-bit and Android 2.3 (bitness?), running a program via Eclipse's Run|Run (Ctrl+F11) invokes the android emulator, but won't install .apk on the emulator (and certainly won't run it). (update, answering @Computerish's question) All I am getting at Eclipse's Console is: [2010-12-16 10:23:33 - HelloAndroid] ------------------------------ [2010-12-16 10:23:33 - HelloAndroid] Android Launch! [2010-12-16 10:23:33 - HelloAndroid]

Will a Visual Basic 6 program run on a 64-bit machine?

核能气质少年 提交于 2019-12-29 07:35:17
问题 I have a program built with VB6 and using some 32-bit DLL's. Will this program run on a 64-bit machine? This page suggests that it should run fine on the Windows on Windows layer, but what about the DLL's? 回答1: Yes , both the VB 6 program and the DLLs will work just fine on a 64-bit version of Windows. Since both are 32-bit, they will run under the Windows-on-Windows 64 (WoW64) subsystem, which effectively emulates a 32-bit operating system on the 64-bit versions of Windows. I've run many

“Bad binary signature” in ASP.NET MVC application

余生长醉 提交于 2019-12-29 07:33:18
问题 We are getting the error above on some pages of an ASP.NET MVC application when it is deployed to a 64 bit Windows 2008 server box. It works fine on our development machines, though these are 32 bit XP. Just wondered if anyone had encountered this before, and has any suggestions? Details as follows: Bad binary signature. (Exception from HRESULT: 0x80131192) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

Excel 2013 VBA Error

拥有回忆 提交于 2019-12-29 06:58:23
问题 I am getting following error. Compile error: The code in this project must be updated for use on 64-bit systems. VBA CODE Option Explicit Private Declare Function URLDownloadToFile Lib "urlmon" _ Alias "URLDownloadToFileA" (ByVal pCaller As Long, _ ByVal szURL As String, ByVal szFileName As String, _ ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long Dim Ret As Long '~~> This is where the images will be saved. Change as applicable Const FolderName As String = "C:\Temp\" It works fine in

System32 Folder on a 64-bit system

江枫思渺然 提交于 2019-12-29 06:21:50
问题 I have a cmd file that runs on 32 bit Vista system. I notice that the code has references to the system32 driver folder. I'm wondering whether the code could potentially run on a 64 bit Windows 7 system. So I guess my question is Does a 64 bit system contain a system32 folder? Be very grateful for any replies. 回答1: The System32 folder in 64-bit Windows actually contains the 64-bit files, and 32-bit programs running under WOW64 would generally go looking in System32 for the 32-bit DLLs etc.

Cannot find crtn.o, linking 32 bit code on 64 bit system

◇◆丶佛笑我妖孽 提交于 2019-12-29 06:19:52
问题 I'm attempting to assemble some 32-bit code using NASM and GCC on a 64-bit system. I use the following two commands nasm -f elf32 -g -F stabs coc.asm gcc -m32 -o coc coc.o NASM appears to do fine, but LD complains: /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc /usr/bin/ld: skipping

Performance problem with Euler problem and recursion on Int64 types

旧街凉风 提交于 2019-12-29 05:59:10
问题 I'm currently learning Haskell using the project Euler problems as my playground. I was astound by how slow my Haskell programs turned out to be compared to similar programs written in other languages. I'm wondering if I've forseen something, or if this is the kind of performance penalties one has to expect when using Haskell. The following program in inspired by Problem 331, but I've changed it before posting so I don't spoil anything for other people. It computes the arc length of a