Command Prompt for Windows




The entry function main()

External Command programs have an entry function main(), which is similar to DOS programs, but with one important difference, main() does not include the argc and argv arguments, but instead these arguments are implemented as functions calls. The arg... family of functions provide a high level of functionality that the standard argc and argv arguments do not and greatly simplifies the processing of command line arguments. It is not uncommon to see programs that devote whole modules purely for handling command line arguments and this is clearly not necessary when using the External Command SDK. It may be interesting to note that these functions are similar to that used internally by the WinOne® Command Prompt.

There are 7 arg... functions available, which include :-