http://dev.csdn.net/develop/article/14/14343.shtm

解决方案 »

  1.   

    http://www.idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=8COM+ Events Helper Objects  COM+ The COM+ event system allows you to dynamically change properties of the system, by exposing a set of catalog interfaces. Normally, you would use the catalog objects to administer the system, register, subscribe, filter events or manage transient subscriptions. However, these interfaces have sever limitations: They require enormous amount of tedious code for achieving even simple tasks. They are Dual interface and as such they require the C++ programmer to use BSTR for GUID,IID,CLSID and thus are not type safe. The event system helper object expose a simple to use logical interface that provides the same functionality with a fraction of the code (5 lines instead of 380). They expose a custom interface, much more agreeable to the type safe C++.
      

  2.   

    www.codeproject.com
    关键字。。com+