Constructor Strings

Many COM components are able to make use of configuration information that has traditionally meant the use of the registry entries or INI files. This configuration information typically included things like the ODBC DSN name. COM+ allows this type of information to be specified right in the Component Services snap-in, using something called an object constructor.

To use a constructor string in your Visual Basic program, your object must be configured within COM+ Use Component Services to navigate to your component. Right-click the component and select Properties.

In the Activation tab, select Enable Object Construction and type the string in the Constructor String text box. This can be a DSN, the name of some computer or queue, ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.