How do I convert this program to work on a 64 bit machine for VB 6.3?
I have some VB 6.3 code that'开发者_开发问答s normaly used on a 32 bit machine. But I am now trying to run it on a 64bit machine and the code doesn't work. It was programmed in VBA (autodesk)
Can someone help me with converting?Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, _
ByVal dwProcessID As Long) As Long
Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long
See Compatibility Between the 32-bit and 64-bit Versions of Office 2010 for a list of affected API calls and examples of conditional compilation to call either the 32- or 64-bit Declare statement depending on the bitness.
精彩评论