C++ Get file content from the DLL resource

44 Views Asked by At

I am working on my c++ application to view the html content in the webbrowser control. I have stored the .htm file in the dll "My Resources Files" and I would like to get access to it.

When I tried this:

webBrowser1->Navigate("res://test1.dll/frontpage.html");

It will not display the content in the webbrowser so I have also tried this:

webBrowser1->Navigate(System::Diagnostics::Process::Start(System::Environment::CurrentDirectory + "test1.dll\frontpage.htm"));

It did the same things and I am not sure why.

What I am trying to achieve is I want to get access to the test1.dll and get the frontpage.html file to output them in the webbrowser control.

Can you please show me an example how i can get access to the dll to fetch the html file and output them in the webbrowser control?

EDIT: Here is the screenshot

enter image description here

0

There are 0 best solutions below