STDMETHODIMP CConnect::raw_CTPFactoryAvailable(struct ICTPFactory * CTPFactoryInst )
{
CComPtr<Office::_CustomTaskPane>spCustomTaskpane;
spCustomTaskpane=NULL;
HRESULT hr = CTPFactoryInst->raw_CreateCTP(_com_util::ConvertStringToBSTR("SampleActiveX.myControl"),
_com_util::ConvertStringToBSTR("Task Pane Example"),\
vtMissing,&spCustomTaskpane);
spCustomTaskpane->PutVisible(true);
return S_OK;
}spCustomTaskpane总是创建失败,望各位大侠帮忙分析分析,在线急等
{
CComPtr<Office::_CustomTaskPane>spCustomTaskpane;
spCustomTaskpane=NULL;
HRESULT hr = CTPFactoryInst->raw_CreateCTP(_com_util::ConvertStringToBSTR("SampleActiveX.myControl"),
_com_util::ConvertStringToBSTR("Task Pane Example"),\
vtMissing,&spCustomTaskpane);
spCustomTaskpane->PutVisible(true);
return S_OK;
}spCustomTaskpane总是创建失败,望各位大侠帮忙分析分析,在线急等
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货