after including TCppWebBrowser component in Borland c++ builder 6 and downloading 1 or more HTML documents i'd like to save the raw HTML code in a file whoose name i generate automatically (i.e. if there are few files then they are called 1.txt, 2.txt etc). so that i don't have to do all that manually.
the problem: how do i get the source code from the TCppWebBrowser component. there's a function called ExecWB that takes a TVariant as an argument (among other things) that specifies path & file name but i can't get it to work. the programm runs fine but i get no output and no file created. also i'm not sure if i initialize the damn TVariant (or VARIANT, whichever) variable & allocate memory for the string that i store in it because i couldn't find any speciffic instructions on it, so the problem might be there.
there's also a TCppWebBrowser->Document property but it's extremely complicated to get to it's COM proberties such as "body" etc.
i even tried the older HTTP client component and stuff from mshtml.h but it won't take newer html files.
anyone knows an easy way to get source code out of TCppWebBrowser component? i mean it souldn't be so hard to do such a simple thing