Jomerce
2010-05-25 04:02:34 UTC
Hi,
My NSE integrates with office and other applications save-as/open
dialogs. I want to catch "save" and "open" button commands of these
dialogs. For this I am trying to access IFileDialog interface. This is
what I tried
IFileDialog *pfv = NULL;
CComPtr<IServiceProvider> spServiceProvider;
m_pShellBrowser->QueryInterface(&spServiceProvider);
if (SUCCEEDED(hr1))
{
hr1 = spServiceProvider-
{
pfv->Release();
}
}
My NSE integrates with office and other applications save-as/open
dialogs. I want to catch "save" and "open" button commands of these
dialogs. For this I am trying to access IFileDialog interface. This is
what I tried
IFileDialog *pfv = NULL;
CComPtr<IServiceProvider> spServiceProvider;
m_pShellBrowser->QueryInterface(&spServiceProvider);
if (SUCCEEDED(hr1))
{
hr1 = spServiceProvider-
QueryService(SID_SCommDlgBrowser,IID_PPV_ARGS(&pfv));
if (SUCCEEDED(hr1)){
pfv->Release();
}
}