Loading HTML from a .res file

Using VS2005 / 2008 as resource editor, one of the options in the Add Resource dialog is HTML: it allows me to insert HTML files into the resource file (res). Does anyone know how to grab HTML (as a string) from VB6 code? LoadResData seems to be close to what I am looking for, but the problem is there is no HTML format in the format table (in this documentation).

0


source to share


2 answers


In Win32 C headers, the resource format constant is defined as RT_HTML and has a value of 23. It should be able to load the HTML resource type. Alternatively, you can check the resource type number by viewing the embedded exe file from Resource Hacker . It lists the resource format types and resource IDs embedded in the file.



+1


source


here is a good tutorial in C ++ http://www.rohitab.com/discuss/index.php?showtopic=15281 you can probably adapt the code (usually the function names are the same for finding win32 routines on msdn.microsoft.com for documentation ) or search the website for the VB example



0


source







All Articles