I have following code which succesfully works using some COM wrapper library with all needed managed types for COM objects
mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)_webBrowser.Document;
mshtml.HTMLIFrameClass iframe = (doc).getElementById("SomeFrameName") as mshtml.HTMLIFrameClass;
if (string.Equals(iframe.readyState.ToString(), "complete", StringComparison.OrdinalIgnoreCase))
// Do something
But I need to avoid this COM wrapper Micrososft.mshtml.dll and use custom interfaces for this reason, so please explain me how way can I work with COM objects with custom interfaces? How do I write them and avoid classes mshtml.HTMLDocumentClass and mshtml.HTMLIFrameClass?
View Complete Post