Parsing HTML
I need a basic HTML control. Does Windows have a very basic one? I do NOT want an embedded instance of IE - I can only imagine the horrors of exploits spreading using my app instantaneously. Therefore MFC''s CHtmlView is definitely out.
Inevitably, this means I will probably have to take a RichEdit box and convert the HTML to rich edit styles. What would the best way to parse HTML be? Should I learn something like boost::spirit? I shudder at doing this as a parsing newbie (I really should take that compilers class before I leave college).
quote:Original post by antareus
I do NOT want an embedded instance of IE - I can only imagine the horrors of exploits spreading using my app instantaneously. Therefore MFC''s CHtmlView is definitely out.
I''m confused. If you''re running an unpatched IE, wouldn''t you say you have problems regardless of whether or not your app use CHTMLView.
How appropriate. You fight like a cow.
quote:Original post by antareusNot really. Actually, IIRC, there''s a couple of messaging clients out there already that use it. When you think about it, it''s more or less ideal for the task. CRichEdit is another possibility, but it''s slightly more limited, and from personal experience I can say that converting HTML to other stuff royally sucks. It''s a pain in the ass to deal with all the syntax incompatibilities people expect to get away with. Of course, if you''re only going to be parsing HTML produced by a specific application, it might be a bit easier.
Very true.
CHTMLView is overkill for a messaging chat window though.
How appropriate. You fight like a cow.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement