S
Sankalp
Hi,
Is the Excel programming model same as that of Word(apart from the differing
object)?
CComQIPtr <Excel::Application> m_pXLApp;
// Unable to do the following in excel
// compile error ('get_CommandBars' : is not a member of of
'ATL_NoAddRefReleaseOnCComPtr......
......
HRESULT hr = m_pXLApp->get_CommandBars(&spCmdBars);
////////////////////////////////
/// following works in Word
CComPtr<Word::_Application> m_pWordApp;
HRESULT hr = m_pWordApp->get_CommandBars(&pCmdBars);
Am I missing something here?
Could some one point me to some excel addin resources in VC++ and ATL?
Thanks,
Sankalp
Is the Excel programming model same as that of Word(apart from the differing
object)?
CComQIPtr <Excel::Application> m_pXLApp;
// Unable to do the following in excel
// compile error ('get_CommandBars' : is not a member of of
'ATL_NoAddRefReleaseOnCComPtr......
......
HRESULT hr = m_pXLApp->get_CommandBars(&spCmdBars);
////////////////////////////////
/// following works in Word
CComPtr<Word::_Application> m_pWordApp;
HRESULT hr = m_pWordApp->get_CommandBars(&pCmdBars);
Am I missing something here?
Could some one point me to some excel addin resources in VC++ and ATL?
Thanks,
Sankalp