CAtlExeModuleT::WinMain

 

This method implements the code required to run an EXE.

Syntax

      int WinMain(
   int nShowCmd 
) throw( );

Parameters

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

Return Value

Returns the executable's return value.

Remarks

This method can be overridden. If overriding CAtlExeModuleT::PreMessageLoop, CAtlExeModuleT::PostMessageLoop, or CAtlExeModuleT::RunMessageLoop doesn't provide enough flexibility, it's possible to override the WinMain function using this method.

Requirements

Header: atlbase.h

See Also

CAtlExeModuleT Class
WinMain