Compartilhar via


/ENTRY (Windows CE 5.0)

Send Feedback

The Entry-Point Symbol option sets the starting address for an .exe file or DLL.

Type a function name in the Entry-Point Symbol text box (or in the function argument on the command line).

You must define the function with the __cdecl calling convention.

The parameters and return value must be defined as documented for WinMain (for an .exe file) or DllMain (for a DLL).

By default, the starting address is a function name from the C run-time library. The linker selects it according to the attributes of the program, as shown in the following table.

Function name Default for
WinMainCRTStartup An application using /SUBSYSTEM:WINDOWSCE; calls WinMain, which must be defined with __cdecl.
wWinMainCRTStartup An application using /SUBSYSTEM:WINDOWSCE; calls wWinMain, which must be defined with __cdecl.
_DllMainCRTStartup A DLL; calls DllMain, which must be defined with __cdecl, if it exists.

If the /DLL or /SUBSYSTEM option is not specified, the linker selects a subsystem and entry point depending on whether main or WinMain is defined.

The functions main, WinMain, and DllMain are the three forms of the user-defined entry point.

See Also

Linker Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.