Is it possible to use C ++ to intersect the DOM with C # BHO?

I am writing a helper browser object (BHO) for Internet Explorer in C #!

I want to search for text nodes in the DOM, which requires me to cross the entire DOM tree if I want to distinguish between text nodes and other types of nodes. This supposedly takes a lot of time in C #, but should be almost instantaneous in C ++ (?).

Is there a way to perform a move in C ++? A DLL that I can call from C #, possibly using DllImport? Is it easy to pass HTMLDocument to my external C ++ method?

Any other ideas?

Hooray!

+3
source share
2 answers

""? , DOM. ++ Microsoft.

Marshal.GetIUnknownForObject() , . QI IHtmlDocument2 .

+2
#,

.

, HTML , . , DOM ( ) .

0

Source: https://habr.com/ru/post/1772375/


All Articles