无法获取窗口句柄,不支持无窗口 ActiveX 控件? [英] Unable to get window handle, Windowless ActiveX controls are not supported?

查看:34
本文介绍了无法获取窗口句柄,不支持无窗口 ActiveX 控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的开发机器升级到了 Windows 7,我的项目升级到了 .NET 3.5.当我尝试运行该项目时,我现在收到此错误:

I upgraded my development machine to Windows 7 and my project to .NET 3.5. When I try to run the project, I now get this error:

Unable to get the window handle for the 'AxVt' control. Windowless ActiveX controls are not supported.

该项目正在使用 Dart Emulation for ActiveX Vt 控件,它模拟终端控件.我仔细检查过,程序在带有 .NET 3.5 的 Windows XP SP2 下正常启动,所以不是框架导致了问题.将兼容模式设置为 Windows XP SP2 也无济于事.当设计器代码在控件上调用 EndInit 时会发生此异常.

The project is using the Dart Emulation for ActiveX Vt control, which emulates a terminal control. I double-checked and the program launches fine under Windows XP SP2 with .NET 3.5, so it's not the Framework causing the issue. Setting compatibility mode to Windows XP SP2 doesn't help either. This exception occurs when the designer code calls EndInit on the control.

有什么办法可以解决这个问题,还是只是意味着我必须从我的机器上删除 Windows 7 并返回到 Windows XP?

Is there any way to work around this or does it just mean I have to remove Windows 7 from my machine and go back to Windows XP?

推荐答案

尝试关闭 DEP 以查看是否是该问题,我以前遇到过,请查看:http://blogs.msdn.com/ed_maurer/archive/2007/12/14/nxcompat-and-the-c-compiler.aspx了解如何操作.

Try switching DEP off just to see if is that issue, I had it before, check here: http://blogs.msdn.com/ed_maurer/archive/2007/12/14/nxcompat-and-the-c-compiler.aspx to find out how.

干杯

这篇关于无法获取窗口句柄,不支持无窗口 ActiveX 控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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