我写的一个com中有一个长时操作的过程,所以需要做一个事件来显示操作的进度,各位是否能提供参考,如不用事件,是否有更好的办法!!不考虑用回调函数!!
解决方案 »
- Installshiled 打包报错?急!
- 是否这个是vc的bug呢
- 求教,关于VC link时的问题。fatal error LNK1117。
- 如何从文件中一段一段读取数据
- 哪位知道CMDIFRAME类中是否有m_hWndMDIClient这个成员?我们如何才能知道MFC中类成员都有哪些?
- 请问在EXCEL中,如何设置行和列的象素高度和宽度。
- 急问:使用ATL的OLE DB消费者模板,如何确定当前所在的行?
- 请 问 如 何 用 VC 做 一 个 可 以 截 获 IE 消 息 的 控 件 (在线等)
- 搞笑短信,你笑就顶一下!
- 如何用用VC读取WAV格式的文件,绘出波形图并可以对读取出来的数据进行编辑处理!
- 多线程的程序是否也容易产生文件开关读写的错误
- 已知圆心坐标和圆半径,如何得到圆边所有的点的坐标?
Seven steps to connectable object
1. You need to implement the IConnectionPointContainer interface
2. QueryInterface should respond to requests for IID_IConnectionPointContainer
3. You need to implement the IConnectionPoint interface for each source interface supported by the connectable object
4. You need to provide a connection map, that is, a table that associates an IID with a connection point implementation.
5. You must update the coclass definition for the connectable object class in you IDL file to specify each source interface. Each source interface must have the [source] attribute. The primary source interface should have the [default,source] attributes.
6. Typically, you will want helper methods that call the sink methods for all connected sinks
7. You must call the helper methods at the appropriate times.