RAD Studio
ContentsIndex
PreviousUpNext
Using --p (Pascal Calling Conventions)

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:

int  __cdecl main(int argc, char* argv[], char
* envp[])
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!