从 .res 文件加载 HTML [英] Loading HTML from a .res file

查看:80
本文介绍了从 .res 文件加载 HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 VS2005/2008 作为资源编辑器,添加资源对话框中的选项之一是 HTML:它似乎允许我将 HTML 文件嵌入到资源 (res) 文件中.有谁知道如何从 VB6 代码中获取 HTML(作为字符串)?LoadResData 似乎接近我正在寻找,但问题是格式表(在该文档链接中)中没有定义 HTML 格式.

Using VS2005/2008 as a resource editor, one of the options in the Add Resource dialog is HTML: it appears to allow me to embed HTML file(s) into a resource (res) file. Does anyone know how to grab the HTML (as a string) from VB6 code? The LoadResData appears to be close to what I'm looking for but the problem is there isn't a HTML format defined in the table of formats (in that documentation link).

推荐答案

在 Win32 C 头文件中定义了一个名为 RT_HTML 的资源格式常量,它的值为 23.应该可以加载 HTML 资源类型.此外,您可以通过使用 Resource Hacker 查看构建的 exe 文件来验证资源类型编号.它列出了文件中嵌入的资源格式类型和资源 ID.

In Win32 C headers a resource format constant is defined called RT_HTML, it has the value 23. It should be possible to load the HTML resource type. Additionally you can verify the resource type number by looking at the built exe file with Resource Hacker. It lists the resource format types and resource IDs embedded in the file.

这篇关于从 .res 文件加载 HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆