BUG: Building ATL Service Project Does Not Register the Service

Last reviewed: June 25, 1997
Article ID: Q167927
The information in this article applies to:
  • Microsoft Active Template Library, versions 2.0, 2.1

SYMPTOMS

When you build an ATL service, using the AppWizard, the COM objects are registered, but the service does not appear in the Control Panel's list of services.

CAUSE

The Wizard creates a custom build rule for self-registration. The rule uses the /RegServer switch instead of the /Service switch.

RESOLUTION

The Wizard adds the following custom build command:

   "$(TargetPath)" /RegServer

Change the build command to:

   "$(TargetPath)" /Service

To change the command, bring up the Project Settings dialog box, click the Custom Build tab, and edit the command in "Build command(s):".

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Chuck Bell, Microsoft Corporation


Keywords : AtlReg AtlServer vcbuglist500 kbbuglist
Technology : kbAtl kbInetDev
Version : 2.0 2.1
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.