Configuring COM Classes for COM Registration Manually
Project:This information applies to the following project types:
To register a class ID:
|
1.
|
In the View List under Organization, click Setup Design (for installation projects only) or Components. |
|
2.
|
In the explorer, expand the component, and under Advanced Settings, select COM Registration. The COM Registration explorer appears in a separate pane. |
|
3.
|
In the COM Registration explorer, right-click COM Classes and click New COM Class. |
|
4.
|
Type a new name for the COM class if needed. The name that you give the COM class will be registered as the default value under HKEY_CLASSES_ROOT\CLSID\<GUID>. To give the class a new name, right-click it and click Rename. |
|
5.
|
Click the new COM class to configure its settings. |
|
6.
|
Specify a context type for this class. The following list tells you which server context is appropriate for which type of COM server: |
|
•
|
LocalServer32—32-bit .exe file |
|
•
|
LocalServer—16-bit .exe file |
|
•
|
InprocServer32—32-bit .dll or .ocx file |
|
•
|
InprocServer—16-bit .dll or .ocx file |
If the server context is LocalServer or LocalServer32, click the context to configure the Default Inproc Handler and Argument settings.