CWebBrowser2 m_wb;
m_wb.Navigate("http://www.sohu.com/index.htm",NULL,NULL,NULL,NULL);
现在我将一网页加入资源中,请问该如何使用。
m_wb.Navigate(IDR_HTML,NULL,NULL,NULL,NULL);编译通不过。

解决方案 »

  1.   

    http://www.vckbase.com/document/viewdoc/?id=566
      

  2.   

    直接写就可以了吧
    m_wb.Navigate("test.htm",NULL,NULL,NULL,NULL);
      

  3.   

    请讲怎样“用res协议浏览资源”
      

  4.   

    res Protocol--------------------------------------------------------------------------------Specifies a resource that will be obtained from a module. 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. 
    ResAvailable as of Microsoft® Internet Explorer 4.0 or later. Remember, URLs require that special characters such as '#' be escaped. Use '%23' to escape the '#' character.ExampleThis example shows the correct and incorrect ways to format the numerical identifier for the resource type. #define MYBITMAP 234// This is correct.
    "res://mydll.dll/#2/#234"// This is not correct.
    "res://mydll.dll/#2/MYBITMAP"
      

  5.   

    "res://你的应用程序完整路径/资源ID"
    OK?