防老笔记 DirectShow连接错误 error LNK2001: unresolved external symbol "class CFactoryTemplate * 。。。

来源:互联网 发布:陕西知行文化产业集团 编辑:程序博客网 时间:2024/05/08 12:40

需要添加如下代码:
CFactoryTemplate g_Templates[] = {
  { L"My ActiveX"
  , &CLSID_SystemClock
  , CSystemClock::CreateInstance
 }
};
int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
原创粉丝点击