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. Web Development
  3. Web Browser

Web Browser

Scheduled Pinned Locked Moved Web Development
helphtmladobeperformanceannouncement
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.
  • T Offline
    T Offline
    TrungHuynh
    wrote on last edited by
    #1

    Hi I create a Dialog, on place WebBroser control on it. when user insert one media (Window media, Real, QuickTime, Flash). I bulid html string that load Media control(depond on file to insert). And i naviagate form memory use this string (put_innerHtml). this my code: LPDISPATCH lpDispatch = NULL; IHTMLDocument2* lpHtmlDocument= NULL; IHTMLElement* lpBodyElm = NULL; lpDispatch = m_WebCtrlPreview.GetDocument(); if(lpDispatch) { lpDispatch->QueryInterface(IID_IHTMLDocument2, (void**)&lpHtmlDocument); lpDispatch->Release(); } if(lpHtmlDocument) { lpHtmlDocument->get_body(&lpBodyElm); lpHtmlDocument->Release(); } if(lpBodyElm) { BSTR bstrHtml = szHtmlPreview.AllocSysString(); lpBodyElm->put_innerHTML(bstrHtml); SysFreeString(bstrHtml); lpBodyElm->Release(); } szHtmlPrivew is ok, it contains html string to preview media. My Application run well, But when i insert a Quick Time movie (*.mov), it play on Web Browser control, and then i insert another kind of media, my application will appears a critical error. HELP ME Regards Trung Huynh

    A 1 Reply Last reply
    0
    • T TrungHuynh

      Hi I create a Dialog, on place WebBroser control on it. when user insert one media (Window media, Real, QuickTime, Flash). I bulid html string that load Media control(depond on file to insert). And i naviagate form memory use this string (put_innerHtml). this my code: LPDISPATCH lpDispatch = NULL; IHTMLDocument2* lpHtmlDocument= NULL; IHTMLElement* lpBodyElm = NULL; lpDispatch = m_WebCtrlPreview.GetDocument(); if(lpDispatch) { lpDispatch->QueryInterface(IID_IHTMLDocument2, (void**)&lpHtmlDocument); lpDispatch->Release(); } if(lpHtmlDocument) { lpHtmlDocument->get_body(&lpBodyElm); lpHtmlDocument->Release(); } if(lpBodyElm) { BSTR bstrHtml = szHtmlPreview.AllocSysString(); lpBodyElm->put_innerHTML(bstrHtml); SysFreeString(bstrHtml); lpBodyElm->Release(); } szHtmlPrivew is ok, it contains html string to preview media. My Application run well, But when i insert a Quick Time movie (*.mov), it play on Web Browser control, and then i insert another kind of media, my application will appears a critical error. HELP ME Regards Trung Huynh

      A Offline
      A Offline
      alex barylski
      wrote on last edited by
      #2

      wrong forum The word of the day is legs, let's go back to my house and spread the word ;P

      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