NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Hosting Managed NGWS Components in Unmanaged C++

This sample demonstrates how to load NGWS assemblies into application domains. The sample can use both assemblies containing explicit manifests and existing dll's that do not contain manifests. However, the level of functionality offered by the sample is different depending on whether the code you are referencing is described by a manifest or not.

Requirements:

This sample requires the installation of Visual C++ 6.0 in order to function properly.

Location of the Sample

This sample list located in the Corhost directory of the NGWS SDK sample directories.

For Example:

C:\NGWSSDK\Samples\Assemblies\Corhost

Building the Sample

In order to properly build and run this sample, the following steps need to be performed prior to building and running the sample.

  1. Type COMREG MSCORLIB.DLL from the command line.

    For Example:

    C:\NGWSSDK\Samples\Assemblies\Corhost\:>COMREG MSCORLIB.DLL
  2. Add the NGWS SDK Include directory to the Visual C++ 6.0 development environment.
  3. Select Options under the Tools Menu.
  4. Select the Directories tab
Click on the first empty text area, and type the path to the NGWS SDK include directory. Or click the browse button and browse to the NGWS SDK include directory
Typically:
C:\NGWSSDK\Include
  1. Open the CorHost development project CORHOST.DSW in the Visual C++ 6.0 development environment.
  2. Press F7 or Choose Build CorHost.exe from the Build Menu

Running the Sample

In order to run this sample, follow the instructions listed below.