How to use a .chm Help File as an Embedded Resource

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have been searching for about a week for a solution for this question and have been unsuccessful.  I am trying to use a CHM help file as an embedded resource so that I can simply deploy an EXE and have all the stuff I need in it.  I can get a help file to run as an external resource, but not embedded.  What am I missing?

<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100% Code Snippet

private void AssyGethlp()
        {         
            Assembly a = Assembly.GetExecutingAssembly();
            string[] resources = a.GetManifestResourceNames();           
           
            foreach (string s in resources)
            {
                if (s.EndsWith("BVHelp.chm"))
                {
                    BVHelp.HelpNamespace = s;                       
                }
            }
        }
The resource file is included in the project as an "Embedded Resource" and during debug variable s turns up with a what looks to be a good name and then assigns it to BVHelp.HelpNamespace...what else do I need to do?


View the full article
 
Back
Top