Using -p (Pascal Calling Conventions)

From RAD Studio
Jump to: navigation, search

Go Up to The main() Function Index

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[])

See Also