Creating a minimalist window based on MSHTML

I have a library for Haskell that can accept a regular web application, run it on a local server and open a window displaying this application using QtWebkit. The code for the Qt interface is very short. However, I would like to avoid Qt overhead for Windows users.

It seems that the best option would be to have an alternative to this QtWebkit-based C ++ file, which instead uses the MSHTML library on Windows. Unfortunately, I have almost no experience with specific Windows libraries. It seems like I need to use the IWebBrowser2 interface , but this seems mostly speculative.

If someone can point me in the right direction, I would be very obliged. The final trick here is that it must compile with MinGW. Not sure how many complications in this case.

thank

+3
source share
1 answer

You can use hdirect to invoke the IWebBrowser2 interface from Haskell. This is messy for code against OLE / COM, but it can do the job. Creating a C binding to an interface is possible, but if you need MinGW, then it can be more complicated than just a Haskell approach.

+1
source

All Articles