这个plug组件不知到底是什么东西,不知何com组件什么区别

#include <iostream>
#include <plug/plug.h>
#include "D:\HELL0\I_HELL0.h"
using namespace std;
int main()
{
    INIT_PLUG
    I_HELL0* tf = NEW(HELL0);
    SetPlug("HELL0", tf);//这个name要和组件的名称相同


    auto pl = GetPlug(HELL0);
    pl->test();
    system("pause");
}
//在一个地方SetPlug,在另一个地方就能GetPlug,经常这样使用std::shared_ptr定义指针,然后newsp,感觉就像成员变量,要使用他要定义一个变量,SetPlug相当于初始化,GetPlug就是获取使用。不知对不对等有时间在看看

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2021-07-08
  • 2021-04-01
  • 2022-01-14
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-02-09
  • 2021-05-19
  • 2021-08-09
  • 2021-06-04
  • 2021-12-29
  • 2021-07-20
  • 2021-10-31
相关资源
相似解决方案