RAD Studio |  |

Using --p (Pascal Calling Conventions)
See Also
Collapse All

If you compile your program using Pascal calling conventions, you must remember to explicitly declare main as a C type. Do this with the __cdecl keyword, like this:

Copy Code

    int  __cdecl main(int argc, char* argv[], char
    * envp[])

See Also

The main() Function

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!