I am using mshtml in a C application. I have an IWebBrowser2 object and an IHtmlDocument2 object, and I want to use the write method instead of navigate2. I used xxd -i to convert the html document to a giant unsigned char (in hex) and saved it in a header file, which is statically linked into the document. Now, I would like to use that giant unsigned char in the document -> write, however it is expecting a safearray.
I would like to know either how to get the unsigned char into the safearray, or another method to achieve the goal of getting an embedded string into the document->write.