You must create a text file (called cobconfig.cfg in this example) containing the following line:
and then set the environment variable COBCONFIG to point to the file:
Then when you start the app by passing it parameters on the command-line, e.g. myapp.exe "This is a test" then the length of the command line, 16 in this case, will be passed in CommandLineLen and the value of the parameter will be passed in CommandLineParams.
This works only for native code main programs.
To read a command-line in either native or managed code use the following instead: