Share via


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 intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

To get samples and instructions for installing them:

To access samples from Visual Studio

  • On the Help menu, click Samples.

    By default, these samples are installed in drive:\Program Files\Microsoft Visual Studio 10.0\Samples\.

  • For the most recent version of this sample and a list of other samples, see Visual Studio Samples on the MSDN Web site.

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.

See Also

Other Resources

General Samples