The previous log, when using CInternetSession to capture the content of the Web page, it is necessary to intercept from a certain pattern of what you want, such as the telephone area code, for this kind of thing is best at the regular expression, and its packet/back reference function.
Vc.net provides a good regular expression class library CAtlRegExp (supposedly the most efficient regular expression library in the world), but cannot be used on VC6, VC6 can use VBS (Microsoft VBScript Regular Expression 5.5 This COM to deal with regular expressions, or introduce Vbscript.dll, the best way is to use third-party libraries to deal with regular expressions, such as boost, not to mention if using COM is not very value (COM gives a person's feeling is always a bit clumsy).
The Microsoft Research Institute also honors the production of a regular expression library that can also be used under VC6 in VC7, called GRETA, and click on the link to the GRETA Regular Expression Template Archive for C + +.
The following is a description of the use of boost regular expressions, starting with the download installation of the Boost library
Boost Download address is: http://www.boost.org, the current version is 1.34.0, download will guide you to the SourceForge.net, it is also a SourceForge open source project
Boost library installation is not a hassle, just need to compile the source file itself, if you only need to use its regular expression library, follow the steps below
First execute cmd into the command line
Perform CD c:boost_1_34_0libsregexbuild into the directory (assuming you download boost is uncompressed in this C:boost_1_34_0 directory)
Perform vcvars32.bat (set compile-time environment variables, such as header/library file directory, etc.)
Execute Nmake-fvc6.mak (patiently wait, compile to generate LIB, PDB, and DLL files in directory C:BOOST_1_34_0LIBSREGEXBUILDVC6)
Execute Nmake-fvc6.mak Install (in fact, the lib/pdb file that was generated in the previous step is copied to the ~vc98/lib directory; the DLL file is copied to the ~vc98/bin directory, of course, you want to copy it manually to complete this step.)
Note, do not download the packet is not much, because it is the source file, compression ratio can be high, in particular, the compilation is larger, occupy more than 100 m, so the installation must pay attention to empty out enough space. Remember to bring the DLL files when you release the program.
Pre-use preparation, integration in VC6: Tools->options->directories->include files Add to directory: C:boost_1_34_0