Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: enabling log4net Pin
Steve Maier21-Oct-04 17:28
professionalSteve Maier21-Oct-04 17:28 
Generalintegrated dll and html Pin
ppp00120-Oct-04 0:42
ppp00120-Oct-04 0:42 
GeneralRe: integrated dll and html Pin
DJ_Catboy20-Oct-04 0:52
DJ_Catboy20-Oct-04 0:52 
GeneralRe: integrated dll and html Pin
ppp00120-Oct-04 1:22
ppp00120-Oct-04 1:22 
GeneralRe: integrated dll and html Pin
Heath Stewart20-Oct-04 6:21
protectorHeath Stewart20-Oct-04 6:21 
GeneralRe: integrated dll and html Pin
ppp00120-Oct-04 14:30
ppp00120-Oct-04 14:30 
GeneralRe: integrated dll and html Pin
Heath Stewart20-Oct-04 16:09
protectorHeath Stewart20-Oct-04 16:09 
GeneralRe: integrated dll and html Pin
Heath Stewart20-Oct-04 6:11
protectorHeath Stewart20-Oct-04 6:11 
page.html is an embedded Win32 resources in a DLL. This does not currently work for embedded manifest resources (i.e., ".NET embedded resources").

You do this by editing your .rc file (VS.NET 7.0 and 7.1 do not support this for managed code; VS 2005 will) or opening your .dll in Visual Studio and adding a resource as an RT_HTML resource. You can also use the command-line compiler (like csc.exe or vbc.exe for C# and VB.NET, respectively) with the /win32res: switch to embed a Win32 resource in your PE/COFF executable.

If you want to refer to the resource by name, you need to manually edit the .rc file and refer to the resource by a string name that is not defined in resource.h (or any header included by your .rc file), like so:
EXAMPLE.HTM    HTML    "Example.htm"
The res: protocol is used to reference Win32 resources (this works for images and every other resources, too), so you simply refer to the DLL by name (if this DLL is in a directory specified in your PATH environment variable, you do not need to specify the path to the DLL) then / plus any directories then / and the resource name, like so:
res://example.dll/example.htm
If you have additional questions about hacking .rc files, please refer to the Visual C++ forums.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalinstallation kit Pin
hagay_ar20-Oct-04 0:29
hagay_ar20-Oct-04 0:29 
GeneralRe: installation kit Pin
Steve Maier20-Oct-04 5:29
professionalSteve Maier20-Oct-04 5:29 
GeneralSaving TreeView Structure into a Binary Tree Data Structure Pin
vchalla19-Oct-04 23:04
vchalla19-Oct-04 23:04 
GeneralHttpWebRequest.GetResponse takes long time Pin
Member 140279719-Oct-04 22:58
Member 140279719-Oct-04 22:58 
GeneralRe: HttpWebRequest.GetResponse takes long time Pin
yoaz19-Oct-04 23:33
yoaz19-Oct-04 23:33 
GeneralRe: HttpWebRequest.GetResponse takes long time Pin
Member 140279720-Oct-04 1:07
Member 140279720-Oct-04 1:07 
GeneralRe: HttpWebRequest.GetResponse takes long time Pin
yoaz20-Oct-04 4:21
yoaz20-Oct-04 4:21 
QuestionWhy C# (and .NET) does not support multiple-class-inheritance? Pin
Salil Khedkar19-Oct-04 22:43
Salil Khedkar19-Oct-04 22:43 
AnswerRe: Why C# (and .NET) does not support multiple-class-inheritance? Pin
Steve Maier20-Oct-04 5:37
professionalSteve Maier20-Oct-04 5:37 
GeneralRe: Why C# (and .NET) does not support multiple-class-inheritance? Pin
Salil Khedkar20-Oct-04 20:47
Salil Khedkar20-Oct-04 20:47 
GeneralRe: Why C# (and .NET) does not support multiple-class-inheritance? Pin
Steve Maier21-Oct-04 3:43
professionalSteve Maier21-Oct-04 3:43 
GeneralRe: Why C# (and .NET) does not support multiple-class-inheritance? Pin
Salil Khedkar24-Oct-04 22:59
Salil Khedkar24-Oct-04 22:59 
QuestionCan any one help me? Pin
MoustafaS19-Oct-04 22:18
MoustafaS19-Oct-04 22:18 
AnswerRe: Can any one help me? Pin
J4amieC19-Oct-04 22:42
J4amieC19-Oct-04 22:42 
GeneralRe: Can any one help me? Pin
Anonymous19-Oct-04 22:56
Anonymous19-Oct-04 22:56 
GeneralAny One Help plz Pin
Anonymous19-Oct-04 22:10
Anonymous19-Oct-04 22:10 
General,Any One Help plz Pin
Anonymous19-Oct-04 22:08
Anonymous19-Oct-04 22:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.