Esto esta integramente explicado en los
en el foro de tips
en el constructor
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
ShowMessage("Se han pasado " + AnsiString(ParamCount()) + " parametro/s");
for (int i=0;i<=ParamCount();i++)
{
if (LowerCase(ParamStr(i))== "-x") ShowMessage ("Parametro x");
if (LowerCase(ParamStr(i))== "-y") ShowMessage ("Parametro y");
if (LowerCase(ParamStr(i))== "-z") ShowMessage ("Parametro z");
}
// direcctorio del programa
this ->Caption = ParamStr(0);
}