UMENTRY
Use the UMENTRY macro to override the default entry point and specify a different entry point.
The UMENTRY macro can be used only if UMTYPE is set to either windows or console. If UMTYPE is set to a different value, you can change the default entry point by setting the absolute entry point with UMENTRYABS.
The only entry points that will be correctly understood when linking to the C run-time libraries are main and winmain, and their Unicode variants wmain and wwinmain. You should not specify any other entry points with UMENTRY.
If UMENTRY is not used, the default entry points depend on the value of UMTYPE and the character set (specified by the USE_MFCUNICODE macro).The following table lists the default entry points.
UMTYPE | Character Set | Default Entry Point |
---|---|---|
windows |
ASCII |
winmain |
windows |
Unicode |
wwinmain |
console |
ASCII |
main |
console |
Unicode |
wmain |
Note The entry points are case-sensitive. For example, a sources file might have the following line:
UMENTRY=wmain
Send comments about this topic to Microsoft
Build date: 5/3/2011