BingMap中如何accessed by scripting code

hazehot 2010-03-18 02:26:35
当我在我的WPF应用中加入WEBBRAOWSER然后放入了BINGMAP以后,我用了WebBrowser1.ObjectForScripting = Me来接受SCRIPT,可是却出现了下面的问题。。。请问该怎么解决呢???
A QueryInterface call was made requesting the default IDispatch interface of COM visible managed class 'Soil_Proj.WindowFarmSize'. However since this class does not have an explicit default interface and derives from non COM visible class 'System.Windows.Window', the QueryInterface call will fail. This is done to prevent the non COM visible base class from being constrained by the COM versioning rules.
...全文
48 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xingyuebuyu 2010-04-16
  • 打赏
  • 举报
回复
看提示是要将'System.Windows.Window'的实例的COM visible 属性设为TRUE
iland9876543210 2010-04-16
  • 打赏
  • 举报
回复
顶一下先,顺便学习

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧