ShapesDynInst Sample

The ShapesDynInst sample contains the ShapesDynInst object, which is the run-time object for the ShapesDsgn designer.

Click to open or copy the ShapesDynInst project files.

Click to open or copy the files for the Bin directory (required).

Click to open or copy the files for the Include directory (required).

This designer demonstrates the following features:

At run time, the ShapesDynInst object depersists the subobjects created at design time into three internal lists. When the user requests a subobject, the ShapesDynInst object returns an IDispatch pointer to the requested subobject.

To build the ShapesDynInst sample

Using the Designer at Run Time:

The designer notifies you upon transition to and from run time. In addition, it prompts you for the pathname of the .EXE file to start. Note that you must enter a pathname in response to this prompt.

At run time, you must explicitly create an instance of the designer object that aggregates the base designer run-time object. To access the subobjects created at design time, provide public properties and methods. See VB_ShapesDsgn for an example.

Sample Project

The VB_ShapesDsgn project in the VBSamples directory is a Visual Basic test program for the ShapesDynDsgn sample. To use this project in Visual Basic, create an ActiveX DLL project. On the File menu, click Open Project, then navigate to the VB_Samples\VB_ShapesDsgn directory. Select ShapesDsgn.vbp to load the project files into the Visual Basic environment.

Sample Start-Up Program

The VB_ShapesClient project in the VBSamples directory is a Visual Basic project you can use as a start-up application for the ShapesDynInst designer. To use the client, you must first register the Regobj.dll from the samples\bin directory. Then, when ShapesDsgn prompts for a start-up application, specify ShapesClient.exe.

See Also

ShapesDynDsgn Sample