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


CAtlExeModuleT::Run

This method executes code in the EXE module to initialize, run the message loop, and clean up.

HRESULT Run(
   int nShowCmd = SW_HIDE 
) throw( );

Параметры

  • nShowCmd
    Specifies how the window is to be shown. This parameter can be one of the values discussed in the WinMain section. Defaults to SW_HIDE.

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

Returns S_OK on success, or an error HRESULT on failure.

Заметки

This method can be overridden. However, in practice is it better to override CAtlExeModuleT::PreMessageLoop, CAtlExeModuleT::RunMessageLoop, or CAtlExeModuleT::PostMessageLoop instead.

Требования

Header: atlbase.h

См. также

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

CAtlExeModuleT Class

CAtlExeModuleT Members