Поделиться через


CAtlExeModuleT::ParseCommandLine

Parses the command line and performs registration if necessary.

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

Параметры

  • lpCmdLine
    The command line passed to the application.

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

Возвращаемое значение

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

Заметки

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.

Требования

Header: atlbase.h

См. также

Основные понятия

CAtlExeModuleT Class

CAtlExeModuleT Members