Can someone explain / show me how I could use the IHTMLSelectionObject / selectionRange / IHTMLTxtRange to get the selection made to any HTML content and via the source of that selection range...
I believe it's something like this...
1 2 3 4
IHTMLDocument2 doc2 = browser.Document.DomDocument as IHTMLDocument2;
IHTMLTxtRange range = doc2.selection.createRange() as IHTMLTxtRange;
string selectionHtmlText = browser.innerHTML;
c:\doctoral\unreal browser\unreal browser\Form1.h(548) : error C2440: '=' : cannot convert from 'System::Object ^' to 'mshtml::IHTMLDocument2 ^'
No user-defined-conversion operator available, or
Cast from base to derived requires safe_cast or static_cast