This documentation is archived and is not being maintained.

ScribbleDotNET Sample: Extending Scribble with CLR Features

In this collection of samples the classic Scribble sample is updated and extended to include new .NET functionality. The sample files include two solutions, one with an MFC implementation of the Scribble sample and the other with a Window Forms implementation of the Scribble sample. Each of the feature areas that are demonstrated in the sample solutions are described in the following sample descriptions:

Walkthrough: Exposing a .NET Plug-in Model

The MFC Scribble solution is extended to expose a .NET object model. Furthermore, the sample also exposes a plug-in architecture that enables .NET plug-ins to interact seamlessly with the MFC Scribble solution.

Walkthrough: Using /clr:pure Features

Windows Forms Scribble solution is extended to include some native classes that contain static data. The Windows Forms Scribble solution also exposes Windows Forms controls that must be usable from the Windows Forms designer. Building the sample with the /clr:pure option addresses potential issues with those scenarios.

Security noteSecurity Note:

This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.

To get samples and instructions for installing them:

  • On the Visual Studio Help menu, click Samples.

    For more information, see Visual Studio Samples.

  • The most recent version and complete list of samples is available online from the Visual Studio 2008 Samples page.

  • You can also locate samples on your computer's hard disk. By default, samples and a Readme file are copied into a folder under \Program Files\Visual Studio 9.0\Samples\. For Express editions of Visual Studio, all samples are located online.

To build this sample

  • See the above walkthroughs for the correct procedure to build the application.

To run this sample

  • See the above walkthroughs for the correct procedure to run the application.