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. C / C++ / MFC
  4. Calling HTML/MP3 from a Dll(Any clues?)

Calling HTML/MP3 from a Dll(Any clues?)

Scheduled Pinned Locked Moved C / C++ / MFC
htmlcomtutorialquestion
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.
  • R Offline
    R Offline
    RahulOP
    wrote on last edited by
    #1

    Hi, I'm trying to add HTML(associated JPEGs are in a separate folder) and MP3 files to a dll and then use them in another dialog based app. Now, thanks to CP i know how to add Jpegs to a DLL and call them but am completely stumped as to how to call the HTML or MP3 via ActiveX(MS WebBrowser Control and W.Media Player respectively) Any clues?

    I 1 Reply Last reply
    0
    • R RahulOP

      Hi, I'm trying to add HTML(associated JPEGs are in a separate folder) and MP3 files to a dll and then use them in another dialog based app. Now, thanks to CP i know how to add Jpegs to a DLL and call them but am completely stumped as to how to call the HTML or MP3 via ActiveX(MS WebBrowser Control and W.Media Player respectively) Any clues?

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      Its hardly a complete answer, but I think the res: protocol for urls may be of help. I know its used for things like CHM, etc, so it may be helpful to you - at least for html, if not for your mp3s. Can you not extract the resources to a temporary file (GetTempFilename), play / use that temp file, then tidy up when you're done? If you're not sure when the external app is finished with (eg) your mp3, you could open it with DELETE_ON_CLOSE flag (going from memory here) Iain.

      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