A translated module, that enables the new programme to receive parameters via the joker character '*', and then automatically fills in all file names, that are found for this in the current search path.
This module can be included by the linker or added into a standard library by use of tlib. Since there are also calculation programmes, which are disturbed by a file group in the calling parameters, the author recommends to include this module only in case of need and to simplify this including by an option switch of future compilers and linkers, too. The joker possibility is available for programmes only, that start with a text window, or which get the calling parameters _argv, or _wargv respectively also without passing them to the starting function.
To ask the environment variables, there are the double pointers _environ for ASCII and _wenviron for Unicode, where the last element is a null pointer. At the calling parameters, being also organized as double pointers, the zeroth element can also be a null pointer for very old DOS versions (older than DOS 3.0, [1989Schae], volume II, page 18), therefore the number of calling parameters is furtheron told by _argc. The sense of a C programme is, that it shall run everywhere without change of source.
The following call links an executable text window programme with joker possibility '*' for ASCII parameters:
ilink32 -ap -v -LD:\Borland\BC5\Lib c0x32 main.obj wildargs.obj,main.exe,,cw32mt.lib import32.lib,,
The following call links an executable text window programme with joker possibility '*' for Unicode parameters:
ilink32 -ap -v -LD:\Borland\BC5\Lib c0x32w wmain.obj wildargs.obj,wmain.exe,,cw32mt.lib import32.lib,,
The following call links an executable graphics window programme with joker possibility '*' for ASCII parameters, which can be read out via _argc and _argv:
ilink32 -aa -v -LD:\Borland\BC5\Lib c0w32 WinMain.obj wildargs.obj,WinMain.exe,,cw32mt.lib import32.lib,,
The following call links an executable graphics window programme with joker possibility '*' for Unicode parameters, which can be read out via _argc and _wargv:
ilink32 -aa -v -LD:\Borland\BC5\Lib c0w32w wWinMain.obj wildargs.obj,wWinMain.exe,,cw32mt.lib import32.lib,,
The sense of wWinMain is, that a graphics window programme starts also without automatic joker possibility for passed Unicode parameters.
make.exe (next contribution) | Table of Contents | ilink32.exe (previous contribution) |
Deutsche Fassung | Esperanta versio |