Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Vista + Vc6 + CDocHostHtmlView = @!#$@#$@

Vista + Vc6 + CDocHostHtmlView = @!#$@#$@

Scheduled Pinned Locked Moved Windows API
comc++helpquestiondiscussion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Swinefeaster
    wrote on last edited by
    #1

    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.

    K 1 Reply Last reply
    0
    • S Swinefeaster

      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.

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups