Page 1 of 1

Posted: Fri Mar 07, 2003 7:05 am
by BackupUser
Restored from previous forum. Originally posted by Max..

Code: Select all

Debug ProgramParameter()
Passing "123" to the program leads to the parameter 123 without
quotation marks.

Is this a bug or did I miss anything?

Any way to get quotation marks as part of the parameter?

Max.

Posted: Fri Mar 07, 2003 8:30 am
by BackupUser
Restored from previous forum. Originally posted by Max..

Ok, seen in the german forum that this is standard behaviour.

But

Code: Select all

Debug PeekS(getcommandline_())
does the trick, including the quotes.

Not sure if I will use

Code: Select all

LPWSTR* CommandLineToArgvW(  LPCWSTR lpCmdLine,
  int* pNumArgs
);
To retrieve the Arguments or parse myself (likely). But anyway, solution found, problem solved. :)




Max.