DSHOW编译错误:strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A)时间:2021-03-28 17:12:42需要添加如下代码: CFactoryTemplate g_Templates[] = { { L"My ActiveX" , &CLSID_SystemClock , CSystemClock::CreateInstance } }; int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);