DLL

DLL

Help Writer will create a dll that you can use to connect to the documentation on your desktop applications. It is a .net dll. You can open your help file by linking to the dll and the Help Writer Desktop dll with your program in the references. You need to add the following using statements to your program:

using helpwriterdll;

using helpwriterlibrary;

using DThelpwriterlibrary;

Then add the following code:

HelpViewerDLL help = new HelpViewerDLL();

HWProject hwp = help.getHWP();

HelpViewer hlp = new HelpViewer(hwp);

hlp.ViewerTitle = "Test Help";

hlp.Width = 800;

hlp.Height = 600;

hlp.Background = Brushes.Blue;

hlp.Show();

An Alternative method, you could get away with just adding one using statement:

 using helpwriterdll;

You would still need to include the previous dlls though in the same directory as the dll help file.

Then adding this code when you want the help file to be displayed:

HelpViewerDLL hlp = new HelpViewerDLL("Test Help", 600, 400, Brushes.Blue);

Both of these will create a help viewer with the title Test Help

Its width will be 600.

Its height will be 400

And the background will be blue.

The window opens automatically.

The class constructors inside the help file dll is HelpViewerDLL() and HelpViewerDLL(string, int, int, SolidColorBrush)

Why do I have two ways to do this? The second method, which was the first one I wrote, does not always load the CSS from the project nor size properly and so the help file can be dull. Whereas the first method has always loaded the css for me. I considered just getting rid of the unreliable way but thought some might not care about the css.