【发布时间】:2013-04-23 11:17:27
【问题描述】:
我正在将我的应用程序的兼容性从 visio 32 位扩展到 visio 64 位。我在 win7(64) 机器上使用 visio 2013。我得到了不支持无窗口 ActiveX 控件的异常。我都试过了 KB 980533 和随 Visi SDK 一起提供的 Readme 示例文件,用于在此位置 \VisSDK\Samples\Readme Samples 64bit.htm 上为 64 位系统构建解决方案。我已经尝试过 DEP 解决方案,但无法正常工作。
堆栈跟踪:
at System.Windows.Forms.AxHost.EnsureWindowPresent()
at System.Windows.Forms.AxHost.InPlaceActivate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
{"无法获取 'AxDrawingControl' 控件的窗口句柄。不支持无窗口 ActiveX 控件。"}
系统信息:
操作系统:Windows 7 64 位 Visio:Visio 2013 64 位 目标平台:.Net 4.5,任何 CPU 互操作:AxInterop.Microsoft.Office.VisOcx.dll(在 32 位机器上创建) Visio 绘图控件:VISOCX.DLL 64 位(是的,已注册) IDE:Visual Studio 2013 专业版
【问题讨论】: