Vote UpVote

Delphi commandline oddity with double-quoted arguments

The Wiert Corner – When you add double quoted arguments to the commandline of your Delphi app, strange things can happen: the first parameter seems to be gone, while it is there. It appears that the ParamCount/ParamStr logic fails here, and cannot be repaired because of backward compatibility. Lets look at this commandline: “..\bin\DumpCommandLine.exe” “C:\Program Files\test.xml” “C:\Program Files\meMySelfAndI.xml” The demo code below will output something like this: ParamCount: 2 ParamStr(): 0 C:\develop\DumpCommandLine\bin\DumpCommandLine.exe 1 C:\Program ...
Favorite? Off-Topic? jpluimers @ 2011-07-14 07:00


Visits: 578
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Yogi Yang
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)