... | ... | @@ -8,7 +8,7 @@ |
|
|
|
|
|
# 准备工作
|
|
|
|
|
|
要为TrafficMonitor开发插件,首先你必须要懂得如何编写C++程序,因为TrafficMonitor的插件提供的是C++的指接口。
|
|
|
要为TrafficMonitor开发插件,首先你必须要懂得如何编写C++程序,因为TrafficMonitor的插件提供的是C++的接口。
|
|
|
|
|
|
虽然TrafficMonitor使用了MFC开发,但是这并不意味着TrafficMonitor的插件也一定要使用MFC。TrafficMonitor插件的接口中不包含任何界面库的类,因此,理论上你可以使用任何基于C++的界面库为TrafficMonitor开发插件。
|
|
|
|
... | ... | @@ -90,6 +90,10 @@ virtual IPluginItem* GetItem(int index) = 0; |
|
|
|
|
|
当*index*的值大于或等于0且小于IPluginItem接口的对象的个数时,返回对象的IPluginItem接口的指针,其他情况应该返回空指针。
|
|
|
|
|
|
**注意**
|
|
|
|
|
|
在实现此函数时请务必对index的值进行判断,切勿在未判断index的值的情况下直接返回对象的地址。
|
|
|
|
|
|
### DataRequired
|
|
|
|
|
|
**函数原型**
|
... | ... | |