win64

How to compile existing posix code for 64-bit Windows?

大城市里の小女人 提交于 2019-12-20 15:46:00
问题 I'm ok with using Cygwin or MinGW, but I need to end up with 64-bit code, not 32-bit. This is because I will be calling the DLL from 64-bit managed C#. I can't seem to find and good references for setting up those tools to create 64-bit binaries. Also, it would be nice if the GCC was version 4, not version 3 as came with my Cygwin install. An alternative would be some form of interprocess communication. I will research that, but what I laid out above is what I really want. 回答1: The 64-bit

SendInput Keys in Win32 & Win64 machines

北城余情 提交于 2019-12-20 05:19:29
问题 I have used sendInput() under xp 32bits using webservices to push F5 of current focused windows. Now under Vista win64 i can´t obtain this result. Some articles point uint problems using 4bits or 8bits but this is not fixing the problem under vista with differential compilation and FieldOffset(4)or(8). Others speak about no more interaction beetween Vista screen and the window using this SendInput() method. Can someone point the solution to push F5 in win32 and win64 machines. Thanks. uint

LVITEM for windows 64 bit

眉间皱痕 提交于 2019-12-19 10:18:55
问题 For a long time I tried to use the LVM_GETITEMW message with LVIF_TEXT mask to get the text of a ListView. My program worked in 32 bit but not in 64 bit architecture. I discovered that the problem was at the LVITEM struct. Shortly, my question is which struct is the appropriate one for 64 bit and why. The struct I used as the LVITEMW struct had the following fields: ('mask', c_uint32), ('iItem', c_int32), ('iSubItem', c_int32), ('state', c_uint32), ('stateMask', c_uint32), ('pszText', c

How can disable redirection on win64

主宰稳场 提交于 2019-12-19 03:31:29
问题 I want to copy c:\Windows\regedit.exe to same directory with regedit2.exe name But when I try to copy it,I take an error which say regedit.exe file not found" or sometimes copy it to under windows\SysWOW64 directory. And actually I knıow win64 is redirecting it But how can I disable redirecting and copy windows/regedit.exe to windows/regedit2.exe. My sample code is if(File.Exists(@"c:\Windows\regedit.exe")) try { File.Copy(@"c:\Windows\regedit.exe", @"c:\Windows\regedit2.exe", true); } catch

How to retrieve correct path of either system32 or SysWOW64?

送分小仙女□ 提交于 2019-12-18 08:54:35
问题 I have a 32-bit process that can run either in 32-bit or 64-bit Windows. So, naturally, if the process tried to access the file c:\windows\system32\file.ext , it would be redirected to c:\windows\SysWOW64\file.ext . So far so good - I don't want to disable the redirection. My problem is that my process doesn't actually access the file - instead it just takes its path and writes it into a text file , and I want that text file to read SysWOW64 on a 64-bit system, and system32 on a 32-bit system

Why 2 GB memory limit when running in 64 bit Windows?

旧巷老猫 提交于 2019-12-17 22:20:49
问题 I'm a member in a team that develop a Delphi application. The memory requirements are huge. 500 MB is normal but in some cases it got out of memory exception. The memory allocated in that cases is typically between 1000 - 1700 MB. We of course want 64-bits compiler but that won't happen now (and if it happens we also must convert to unicode, but that is another story...). My question is why is there a 2 GB memory limit per process when running in a 64 bit environment. The pointer is 32 bit so

How to post Extended ASCII chars (0x80 to 0xFF) using PostMessage in Delphi?

倖福魔咒の 提交于 2019-12-12 17:50:41
问题 I am writing a Keyboard Mapper Application in which I need to send Extended ASCII chars (0x80 to 0xFF) to Current Window. I have tried everything like below function ConstructLParam(vKey: Word): LongInt; // Cardinal; begin { ConstructLParam } if vKey > $FF then Result := LongInt(MapVirtualKeyW(vKey, 0) and $00000FFF or $F000) shl 16 or 1 else Result := LongInt(MapVirtualKey(vKey, 0) and $000000FF or $FF00) shl 16 or 1; end; { ConstructLParam } procedure PostCharacter(TargetWinHandle: Hwnd;

Loading a 32-bit process in a 64-bit environment

北慕城南 提交于 2019-12-12 15:14:17
问题 I have a couple of questions as below. CHM is (Compiled HTML File) My CHM file has a link to launch a 32-bit application. The CHM file is coded in Javascript.This works fine in a 32-bit OS environment. But this does not work in a 64 bit OS environment.The reason being: When I open the chm file,64-bit version of hh.exe(an operating system executable) executes and launches the chm. And the chm gets loaded in a 64-bit environment. And now I cannot launch the 32 bit application from the CHM file,

Delphi 64 bit debugging using runtime libs has wrong stack frame active

柔情痞子 提交于 2019-12-12 10:44:30
问题 I ran into a Win64 debugging problem where it looks like we are "missing" debug info. So I did some research and re-created all my .dproj files for our flagship product. This helped, as I got my "missing" blue balls back. But now I run into a new problem: the (top) stack frame displayed in the stack display window appears to be wrong, which results in local variables not being displayed in the local variables pane, and also not when hovering the mouse above some variable. But when I select

NullPointerException thrown when instantiating and OleControlSite on Windows 7

老子叫甜甜 提交于 2019-12-12 05:38:39
问题 I am getting a NullPointerException when trying to open excel from SWT. Sadly I can't post the full stacktrace and some of the code because it has references to the company that I work for. Hopefully someone has run into this issue before and might recognize it. Here is the part of the stacktrace that I can post java.lang.NullPointerException at org.eclipse.swt.ole.win32.OleControlSite.disconnectEventSinks(OleControlSite.java:468) at org.eclipse.swt.ole.win32.OleControlSite