English 中文(简体)
COM/Ole/ActiveX的反馈/喷口管理
原标题:callback/event management with COM/Ole/ActiveX

I am writing a native COM/Ole/ActiveX wrapper for a scripting language. I need some advices to implement events/callback (like onreadystatechange from Microsoft.XMLHTTP object)

我注意到,一些COM物体可以通过电离层接口把我的定制物体称作。 它是管理事件的唯一途径吗?

最佳回答

如果你再次询问关于COM活动如何(来自任何客户,而不仅仅是在安全方面有某些具体要求的国际电子企业)以及如何揭露你的物体事件的较为一般性的问题,那么就有一个良好的法典项目条款,即:

如果你真心想问,如何把你的 objects物体暴露在 j中,以便从因特网探索者那里被称作,那么,是一个好的博客站,讨论你需要做些什么(如标题所示)使你的 COM物体暴露于 j,包括所有I-E-specific goo。

BTW,除非有很好的理由,否则,我建议使用ATL处理你的通信支持,揭露你的活动等等。 你可以在平原、无依无依的C++(如上条)中这样做,但ATL使事情更加容易。 合理的起点是MSDN s ATL Activities section,但我无限期地读到《守则》中某些一般背景的项目条款,然后进入MSDN。

回答你关于身份证的发送和事件的具体问题:事件不必使用身份证,客户可以直接与执行C++事件的操作人员交谈。 但是,如果你希望由独立实体、酋长院、VB6公司和其他仅靠自动化的器件(automation)处理你的活动,客户使用的是只使用IDissu,只用电传给财产、方法、以及 COM。 因此,大多数活动发送器都使用所谓的“单一接口”,这些接口(在C++执行过程中)从IDisTOP和您的习俗事件界面继承,最后根据所涉范围使用相同的代码。 劳教使得建立这种双重交际通信部分确实容易。

问题回答

暂无回答




相关问题
How can i add a button to all windows explorer instances?

I am trying to add a button to one of the existing tool bars in any windows explorer instance. After much research i figured out that BHO (browser helper objects) are the best way to hook to ...

Hunting memory leaks

I m finding leaked heap blocks by using the following command in WinDbg !heap –l With each leaked heap block I get, I m running to following to get the stack trace. !heap -p -a leakedheapblock The ...

Why use CComBSTR instead of just passing a WCHAR*?

I m new to COM. What exactly is the advantage of replacing: L"String" with CComBSTR(L"String") I can see a changelist in the COM part of my .NET application where all strings are replaced in this ...

IThumbnailProvider and IInitializeWithItem

I am trying to develop an IThumbnailProvider for use in Windows 7. Since this particular thumbnail would also be dependant on some other files in the same directory, I need to use something other than ...

Getting a byte array from out of process C++ COM to C#

What s the best way to get a chunk of memory (i.e. void*) from a COM server to C#? We have been using an IStream (using CreateStreamOnHGlobal) and passing that back, which worked. However when we ...

COM Basic links

folks can you provide me the tutorial link or .pdf for learning basic COM?. i do google it.. still i recommend answers of stackoverflow so please pass me.. Thanks

热门标签