![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
COM
ouhaochuan
C plus plus; ObjectArx; AutoCAD二次开发; .NET; ASP.net MVC;
展开
-
ActiveX有界面显示但不能响应鼠标的原因之一
if(myCtrl) alert("haha"); 如果不设置width 和 height 的话就会出现ActiveX 有界面(但界面没有按照希望的大小显示)但无法响应鼠标的情况。原创 2011-11-23 10:39:02 · 1126 阅读 · 0 评论 -
在Javascript中处理MFC ActiveX 抛出的异常
1、如何在MFC ActiveX 中抛出异常 原文链接 若要指出方法中发生了错误,应使用 COleControl::ThrowError 成员函数,它采用 SCODE(状态代码)作为参数。可以使用预定义 SCODE 或定义自己的 SCODE。 注意 ThrowError 只是作为从属性的 Get 或 Set 函数内或自动化方法返回错误的一种手段。只有在这些时候,堆栈上才会存在适当的异原创 2011-11-23 11:22:15 · 1180 阅读 · 0 评论 -
.NET 与 COM 互操作原理
.NET Framework Developer's Guide Advanced COM Interop The .NET framework is a natural progression from COM because the two models share many central themes, including component reuse and lan转载 2011-11-03 10:32:32 · 679 阅读 · 0 评论 -
CHtmlDialog调用Javascript例子代码
// 找到树控件所在框架,调用相应脚本 CComPtr pDocument; if (SUCCEEDED(GetDHtmlDocument(&pDocument)) && pDocument) { CComPtr pFrames = NULL; if (SUCCEEDED(pDocument->get_frames(&pFrames)) && pFrames) { long原创 2011-12-29 09:39:57 · 1679 阅读 · 1 评论