If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
I haven't looked into the source code, but i don't think you can do that with wxHtmlParser. By definition a html parser is not interested in comments and i would assume, it just skips them.
It should be easy enough to extract the comments using regular expressions though. (wxRegEx)