V
vadimp1
Hello,
I need to create several instances of hidden Spreadsheet component in
C++ DLL. Following code works fine with OWC10, but fails on second and
folowing instances with OWC11:
CSpreadsheet book; /* COleDispatchDriver - derived class, created from
type library */
book.CreateDispatch( m_strOWCDispatch ); /* here string either
"OWC11.Spreadsheet.11" or "OWC10.Spreadsheet.10" */
book.m_bAutoRelease = FALSE;
....
book.DetachDispatch();
book.m_lpDispatch = NULL;
second CreateDispatch() causes access violation.
Any ideas why?
Thanks,
Vadim
I need to create several instances of hidden Spreadsheet component in
C++ DLL. Following code works fine with OWC10, but fails on second and
folowing instances with OWC11:
CSpreadsheet book; /* COleDispatchDriver - derived class, created from
type library */
book.CreateDispatch( m_strOWCDispatch ); /* here string either
"OWC11.Spreadsheet.11" or "OWC10.Spreadsheet.10" */
book.m_bAutoRelease = FALSE;
....
book.DetachDispatch();
book.m_lpDispatch = NULL;
second CreateDispatch() causes access violation.
Any ideas why?
Thanks,
Vadim