我不知道你是怎么注册的,我在automation中是这样自动注册的,不知道对你有没有帮助。
BOOL CJunkApp::InitInstance()
{
AfxOleInit();
if (RunEmbedded() || RunAutomated())
{
// component started by COM
COleTemplateServer::RegisterAll();
return TRUE;
}
// component is being run directly by the user
COleObjectFactory::UpdateRegistryAll();
::AfxMessageBox(“Bank server is registered”); return FALSE;
}
BOOL CJunkApp::InitInstance()
{
AfxOleInit();
if (RunEmbedded() || RunAutomated())
{
// component started by COM
COleTemplateServer::RegisterAll();
return TRUE;
}
// component is being run directly by the user
COleObjectFactory::UpdateRegistryAll();
::AfxMessageBox(“Bank server is registered”); return FALSE;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货