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