如何将该程序转换为在 VB 6.3 的 64 位机器上运行?
我有一些 VB 6.3 代码,通常在 32 位机器上使用。 但我现在尝试在 64 位机器上运行它,但代码不起作用。 它是用 VBA (autodesk) 编程的
有人可以帮我转换吗?
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
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅Office 2010 的 32 位和 64 位版本之间的兼容性有关受影响的 API 调用的列表以及根据位数调用 32 位或 64 位 Declare 语句的条件编译示例。
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.