Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 1.02 KB

running-the-program-as-a-local-server.md

File metadata and controls

14 lines (11 loc) · 1.02 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Running the Program as a Local Server
Running the Program as a Local Server
11/04/2016
debugging [ATL], running services as local server
ATL services, running as local servers
eb9701e6-e2a8-4666-897f-0c893aec8ac7

Running the Program as a Local Server

If running the program as a service is inconvenient, you can temporarily change the registry so that the program is run as a normal local server. Simply rename the LocalService value under your AppID to _LocalService and ensure the LocalServer32 key under your CLSID is set correctly. (Note that using DCOMCNFG to specify that your application should be run on a different computer renames your LocalServer32 key to _LocalServer32.) Running your program as a local server takes a few more seconds on startup because the call to StartServiceCtrlDispatcher in CAtlServiceModuleT::Start takes a few seconds before it fails.

See also

Debugging Tips