Computer Chess Club Archives


Search

Terms

Messages

Subject: Strange argv[]

Author: Odd Gunnar Malin

Date: 02:23:50 02/13/02


Hi.

When I try to start a consoleprogram from CA as Winboard Engine or UCI engine
the programpath is split in the argv[] (int main(int argc, char* argv[])).

Ex.
Winboardengine
c:\Program Files\Chess Assistant6\PolarEngine.exe
would give
argv[0] = c:\Program
argv[1] = Files\Chess
argv[2] = Assistant6\PolarEngine.exe

and not as from other program
argv[0]=c:\Program Files\Chess Assistant6\PolarEngine.exe
argv[1]=<empty>

Is this an error in CA or in some common .dll files that follows
Delphi-programs?

Odd Gunnar



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.