Vista + Vc6 + CDocHostHtmlView = @!#$@#$@
-
In an app that ran no problem on vc6 under xp, debugging under vista asserts in occsite.cpp:
HRESULT COleControlSite::CreateControl(CWnd* pWndCtrl, REFCLSID clsid, LPCTSTR lpszWindowName, DWORD dwStyle, const POINT* ppt, const SIZE* psize, UINT nID, CFile* pPersist, BOOL bStorage, BSTR bstrLicKey) { HRESULT hr = E_FAIL; m_hWnd = NULL; CSize size; // Connect the OLE Control with its proxy CWnd object if (pWndCtrl != NULL) { >>>>>>>>>>> ASSERT(pWndCtrl->m_pCtrlSite == NULL); m_pWndCtrl = pWndCtrl; pWndCtrl->m_pCtrlSite = this; }
Callstack: COleControlSite::CreateControl(CWnd * 0x009f721c _CLSID_WebBrowser, const _GUID & {6E6E6142-7265-0000-426F-646F6720506F}, const char * 0x50000000, unsigned long 1237588, const tagPOINT * 0x063591b0 {x=10408680 y=1}, const tagSIZE * 0x0000e900, unsigned int 0, CFile * 0x00000000 {hFile=??? name=???}, int 0, unsigned short * 0x0012e338) line 161 + 28 bytes CDocHostHtmlView::Create(const char * 0x00000000, const char * 0x009de4d8 `string', unsigned long 1342177280, const tagRECT & {top=26 bottom=562 left=8 right=211}, CWnd * 0x002089c0 {GameClientDlg hWnd=???}, unsigned int 1169, CCreateContext * 0x00000000) line 77 + 47 bytes Any thoughts? Thanks![b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
-
In an app that ran no problem on vc6 under xp, debugging under vista asserts in occsite.cpp:
HRESULT COleControlSite::CreateControl(CWnd* pWndCtrl, REFCLSID clsid, LPCTSTR lpszWindowName, DWORD dwStyle, const POINT* ppt, const SIZE* psize, UINT nID, CFile* pPersist, BOOL bStorage, BSTR bstrLicKey) { HRESULT hr = E_FAIL; m_hWnd = NULL; CSize size; // Connect the OLE Control with its proxy CWnd object if (pWndCtrl != NULL) { >>>>>>>>>>> ASSERT(pWndCtrl->m_pCtrlSite == NULL); m_pWndCtrl = pWndCtrl; pWndCtrl->m_pCtrlSite = this; }
Callstack: COleControlSite::CreateControl(CWnd * 0x009f721c _CLSID_WebBrowser, const _GUID & {6E6E6142-7265-0000-426F-646F6720506F}, const char * 0x50000000, unsigned long 1237588, const tagPOINT * 0x063591b0 {x=10408680 y=1}, const tagSIZE * 0x0000e900, unsigned int 0, CFile * 0x00000000 {hFile=??? name=???}, int 0, unsigned short * 0x0012e338) line 161 + 28 bytes CDocHostHtmlView::Create(const char * 0x00000000, const char * 0x009de4d8 `string', unsigned long 1342177280, const tagRECT & {top=26 bottom=562 left=8 right=211}, CWnd * 0x002089c0 {GameClientDlg hWnd=???}, unsigned int 1169, CCreateContext * 0x00000000) line 77 + 47 bytes Any thoughts? Thanks![b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
if the line ASSERT(pWndCtrl->m_pCtrlSite == NULL); is asserting then was there also a control. Check when its got created. Do you call it twice? Some things got changed since VC6 and now with Vista.:~ Dont ferget: "Vista is the best Windows yet now"
Greetings from Germany