C++ Static Builds on Windows

1. Select the generated library in Visual Studio and select one of the Static Configurations:
    Static Debug
    Static Unicode Debug
    Static Release
    Static Unicode Release

2. Add a preprocessor directive to the SampleApp to show static linkage is required:
    a. Open SampleApp Properties
    b. Select C++ Preprocessor options
    c. Change Preprocessor Definitions by adding an entry that matches the name of the generated library:
        e.g. WIN32;_DEBUG;_CONSOLE;myGeneratedLib_STATIC

3. Manually call the Register method as described in: