 |
GetCommandLine Add comment W32 Constants Translate this page |
 |
 |
|
Returns a pointer to the command-line string for the current process. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
LPTSTR GetCommandLine(VOID);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetCommandLine IN kernel32
|
 |
 |
 |
| Parameters: |
 |
| This function has no parameters |
 |
 |
| Return value: |
 |
| The return value is a pointer to the command-line string for the current process |
 |
 |
| My comment: |
 |
SYS(16), SYS(2019), and PCOUNT() all give same amount of information about the command line. May be for the VPF3 there is no other way to define a configuration file name but using this function.
There is another difference. GetCommandLine keeps its data as long as the process is running, whereas using native VFP functions you must store the input parameters in global variables, if you want to reach them later.
|
 |
 |
| Word Index links for the GetCommandLine : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-19 12:00:00 | | Modified: | 2001-11-26 16:02:28 | Visited in last 7 days: 29 |