Visual Basic 2010和Windows 7 [英] Visual Basic 2010 and windows 7

查看:91
本文介绍了Visual Basic 2010和Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道为什么在Windows 7(64位计算机)上运行的Visual Basic 2010无法运行DirectX的功能. (我确实下载了directX SDK).我可以加载它作为参考,但是当我导入dll visula basic时,它会在等待响应时挂断.

Mike Mancuso

Does anyone know why Visual Basic 2010 runing on windows 7 (64 bit machine) will not run functions from directX. (I did download directX SDK). I can load it as a reference, but when I import the dll visula basic gets hung up while waiting for a response.

Mike Mancuso

推荐答案

最可能的原因可能是尝试混合使用32位和64位代码.在64位Windows平台上,32位应用程序在名为WoW64的兼容性平台上运行,请参见 http://en.wikipedia. org/wiki/WoW64 [ ^ ].

如果您尝试在一个应用程序中绑定32位和64位组件,则可以成功地将它们静态或动态地链接在一起(通过负载库),但是在这种情况下,尝试进行交叉操作时,总会导致运行时崩溃称呼.原则上这是行不通的.

使用COM技术跨越同一台计算机上的处理器体系结构之间的边界是完全可能的,但只能通过进程间通信(
The most probably reason for that may be an attempt to mix 32-bit and 64-bit code. On 64-bit Windows platform, 32-bit applications run on top of the compatibility platform called WoW64, see http://en.wikipedia.org/wiki/WoW64[^].

If you try to bind 32-bit and 64-bit components in one application you might successfully link them together statically or dynamically (through load library) but in this case you will always end up with run-time crash at the attempt of the cross call. This is not working in principle.

Crossing the boundary between processor architecture on the same machine using COM technology is quite possible but only through inter-process communications (http://msdn.microsoft.com/en-us/library/aa365574(v=vs.85).aspx[^]). The calls between components compiled for different processor architectures have to be remote procedure calls like in DCOM.

—SA


这篇关于Visual Basic 2010和Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆