MSVC & Internet
Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com Thursday, November 21, 1996 Environment: MSVC 4.2b, Wnidows NT 3.51 SP5 I use MFC's collection of Internet classes to download a HTML file. Since I haven't found a good way of parsing HTML text myself, I use Microsoft's ICP HTML control. It's OnDoRequestEnbedded Event is called for embedded images. The HTML control currently supports only HTML 2.0. The control freezes when it downloads certain pages, one of which is the Microsoft home page. I don't know why it freezes, but I rather not feed it a HTML document which is a version greater than 2.0. The control won't get files using "file://". I use CHttpFile::QueryInfo to obtain information on pages, but there is no discernible difference between pages it reads perfectly(www.universal.com), and pages it chokes on (www.microsoft.com). How can I determine the HTML level using MFC? Why is the OCX choking on Microsoft's home page? mcontest@universal.com
Mike Blaszczak -- mikeblas@nwlink.com Saturday, November 23, 1996 At 16:59 11/21/96 EDT, Mario Contestabile wrote: >How can I determine the HTML level using MFC? You can't reliably do so. HTTP nor HTML provide for no standard in this area, so MFC (and WININET, and any other software) are helpless. Some HTML documents are decorated with a DOCTYPE tag, which you can read about in the HTML specification at http://www.w3.org. Nothing guarantees, of course, that the information in the DOCTYPE tag is valid, correct, or consistent. And, certainly, only a small percentage of documents on the web have a DOCTYPE tag. .B ekiM http://www.nwlink.com/~mikeblas/ I'm afraid I've become some sort of speed freak. These words are my own. I do not speak on behalf of Microsoft.
| Вернуться в корень Архива |