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