Article ID: 126571
Article Last Modified on 10/3/2005
APPLIES TO
- Microsoft Visual C++ 1.0 Professional Edition
- Microsoft Visual C++ 1.5 Professional Edition
- Microsoft Visual C++ 1.51
- Microsoft Visual C++ 1.52 Professional Edition
- Microsoft Visual C++ 2.0 Professional Edition
- Microsoft Visual C++ 2.1
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q126571
SUMMARY
MS-DOS applications written in C generally use main() for
the entry point. The command line can be obtained from the argv parameter of
main(). In particular, the program name is pointed to by argv[0].
There is a similar mechanism that can be used from Windows-based and
Win32-based applications.
REFERENCES
The Windows 3.1 SDK "Guide to Programming," section 14.3.
Keywords: kbhowto kbinfo kblangc kbfunctions KB126571