| Syntax: | Default: |
| link(winmain[, yes]) link(winmain, no) |
link(winmain[, yes]) |
This option determines whether winmain is treated as the main function of a Windows executable. Use this option to develop executable files that are compatible with Microsoft Visual C++.
On all platforms, this option also determines whether function winmain, if it exists in your source, has calling convention __stdcall. When you build with link(winmain,yes), explicitly specifying a linkage keyword other than __stdcall for function winmain is an error. This option forces the calling convention for winmain to __stdcall.
When you build with link(winmain,yes), function winmain must have16 bytes of parameters.
![]()
Incremental C++ Build
C Compilation
Configuration
Files
Calling
Conventions
