我想做一个这样的浏览器,我的html文件已经被读到内存中了,请问我该如何让它能被CHtmlView访问并显示

解决方案 »

  1.   

    我只知道可以从资源中打开html页面。就是使用res协议。
    Syntaxres://sFile[/sType]/sID
    TokenssFile
    Path and file name of the module that contains the resource.
    sType
    Optional. String or numerical resource type. This can be either a custom resource or one of the RT_ predefined resource types described in the FindResource function reference. If a numerical resource type is specified, the actual number of the identifier, not the identifier name, must follow a # character. See the example for more information. If this parameter is not specified, the default resource type is RT_HTML.
    sID
    String or numerical identifier of the resource. If a numerical identifier is specified, the actual number of the identifier, not the identifier itself, must follow a # character. See the example for more information.
      

  2.   

    不太明白!
    一般IE打开的网页上的东西都在Temporary Internet Files目录下,你可以用楼上的方面打开!
    另一种是你自己写到内存中,然后再读!
      

  3.   

    可我的html可能是临时产生的,类似于象jsp或asp中程序临时产生的html,这个html是内存中的一个buffer,网上或硬盘上并不存在,又怎么添加资源中去,可我想把这个buffer交给CHtmlView显示,不知能不能行
      

  4.   

    http://www.csdn.net/develop/read_article.asp?id=18465