RAD Studio
ContentsIndex
PreviousUpNext
Using COM Wizards

RAD Studio provides wizards that help you create COM projects and COM objects. These wizards are available for both Delphi and C++ projects. The following COM wizards are available in the list for FileNewOther<personality>ActiveX:

  • Active Form
  • Active Server Object
  • ActiveX Control
  • ActiveX Library
  • Automation Object
  • COM Object
  • COM+ Event Object
  • COM+ Subscription Object
  • Property Page
  • Transactional Object
  • Type Library
 

Two other related wizards are available from the FileNewOther<personality>Multitier list:

  • Remote Data Module
  • Transactional Data Module

To use a COM wizard

  1. Choose FileNewOther. The New Items dialog box displays.
  2. In the Item Categories tree, click the ActiveX folder beneath your chosen personality, either C++Builder Projects or Delphi Projects.
  3. In the ActiveX folder, double-click ActiveX Library. This creates a Dynamic Link Library [DLL] project that you can use to host in-process ActiveX Objects.
  4. Choose FileNewOther again.
  5. Do either one of the following:
    • To display the COM wizards, click the same ActiveX folder that you clicked in step 2.
    • To display the multitier wizards, click the Multitier folder in your selected personality.
  6. Double-click the wizard that you want to use.
Note: To create a client application to interact with the server created by a COM wizard, use the Import Component wizard or the TLIBIMP utility. 

If your application implements more than one COM object, you should specify the same instancing for all of them.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!