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


CAtlExeModuleT::WinMain

This method implements the code required to run an EXE.

int WinMain(
   int nShowCmd 
) throw( );

Параметры

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

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

Returns the executable's return value.

Заметки

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.

Требования

Header: atlbase.h

См. также

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

CAtlExeModuleT Class

CAtlExeModuleT Members

WinMain