ActiveX Designer Samples Release Notes
About the Designers
- Circle: A designer that shows how to implement designers with subobjects. (Right click on designer to add a subobject)
Click here to open or copy the Circle project files- Different Designer: Design-time portion of a designer that separates the designer & the run-time instance into separate DLLs. (Both Designer & Instance have user interfaces.)
Click here to open or copy the Different Designer project files
- Different Instance: Run-time portion of a designer that separates the designer & the run-time instance into separate DLLs. (Both Designer & Instance have user interfaces.)
Click here to open or copy the Different Instance project files
- Invisible Designer: Design-time portion of a designer that separates the designer & the run-time instance into separate DLLs.The run-time instance is invisible (the designer itself is visible).
Click here to open or copy the Invisible Designer project files
- Invisible Instance: Run-time portion of a designer that separates the designer & the run-time instance into separate DLLs. The run-time instance is invisible (the designer itself is visible).
Click here to open or copy the Invisible Instance project files
Compiling and Running the Designers
To run a designer
Each of the designers listed above has a named directory in the SDK. This directory contains a Debug directory with a fully compiled ActiveX Designer DLL. These designers (and their run-time components - if any) must be registered before they are used. To register the components run: 'regserver32 <component.dll>'
To compile/modify a designer
- Insure that <ActiveXDesignerSDK>\Samples\Framewrk\Debug\AxfwD.lib and <ActiveXDesignerSDK>\Samples\Framewrk\Release\AxfwR.lib are on the link path for the linker. (These are the debug and release versions of the ActiveX Designer Framework. The VC++ project for these is in the Framewrk directory as VC_Framework.)
Click here to open or copy the Framewrk project files- Insure that the files in <ActiveXDesignerSDK>\Samples\Include\ are on the include path for the compiler.
Click here to open or copy the Include project files- Insure that the files in <ActiveXDesignerSDK>\Samples\Lib\<platform> are on the link path for the linker.
Click here to open or copy the Library project files- Load the appropriate project for the designer.
- Compile.
To add a property or method to a designer
- Add the property or method to the .odl file in the designer's directory.
- Run the BuildTlb.bat file in the designer's directory. (This rebuilds the type library and the associated header file).
- Write code to implement the property or method.
- Recompile.
Note
If you experience any linking errors, try the Rebuild All command on the Framewrk project listed above. Errors may occur when testing on different configurations. Doing a Rebuild All generally takes care of the problem. (Make sure to put the recompiled libraries on the link path.)