Freigeben über


CAtlExeModuleT::ParseCommandLine

Parses the command line and performs registration if necessary.

bool ParseCommandLine(
   LPCTSTR lpCmdLine,
   HRESULT* pnRetCode 
) throw( );

Parameters

  • lpCmdLine
    The command line passed to the application.

  • pnRetCode
    The HRESULT corresponding to the registration (if it took place).

Return Value

Return true if the application should continue to run, otherwise false.

Remarks

This method is called from CAtlExeModuleT::WinMain and can be overridden to handle command-line switches. The default implementation checks for /RegServer and /UnRegServer command-line arguments and performs registration or unregistration.

Requirements

Header: atlbase.h

See Also

Reference

CAtlExeModuleT Class

Other Resources

CAtlExeModuleT Members