Compartir a través de


CAtlExeModuleT::WinMain

This method implements the code required to run an EXE.

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

Reference

CAtlExeModuleT Class

WinMain