A COM Server object represents a COM server registration or unregistration. It is used to specify the executable file (DLL or .exe) that contains the server implementation for a COM class. Registration or unregistration of a COM server is controlled by its component and its executable file:
|Not linked to a component
|The COM server is registered if its executable file is installed.
|Linked to a component
|The COM server is registered if its component is installed.
See COM classes for more information.
Tip: Many DLL-based COM servers have a DllRegisterServer entry point that will register the COM class(es) implemented by the server. If your COM server implements that entry point, you might find it more convenient to register the COM server by specifying Use DllRegisterServer in the file's Registration attribute. In that case, you don't need to register the COM class or its servers and verbs separately.
The following attributes and options are available.
Select the server's execution context from the drop-down list. The following choices are available:
Select the threading model for the in-process server from the drop-down list. This option only applies if Context is set to InProcServer32. The following choices are available:
|Enter the path to the COM server, or click ... (browse) to open the Select Installation File or Folder dialog box that allows you to browse for the desired file.
|Store as file name only
|Check this box to register Server path as a file name only; clear it to register it as a full path (if indeed it contains a full path). By registering only the server name (instead of the full path), an application-relative server can be registered for a given COM class and different applications can use different servers for the same class.
|Enter the command line arguments for the server executable, or leave empty if no command line arguments are required. This option only applies if Context is set to LocalServer or LocalServer32.