Udostępnij za pośrednictwem


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( );

Parameters

  • 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.

Return Value

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

Remarks

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

Requirements

Header: atlbase.h

See Also

Reference

CAtlExeModuleT Class

Other Resources

CAtlExeModuleT Members