Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2000-11

MAKE & 0th parameter...

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

KO Myung-Hun

Hi/2 all.

I forgot this. If a program is launched by MAKE, its 0th parameter is

its filename not full path of it.

This is also for DMAKE.

Keep this in mind, please.

Hmm... Nonsense ? ^__________^

For better FPC !!!

from KO Myung-Hun...

Reply by email

Peter Vreman
Show quoted text 11 lines
Hi/2 all. I forgot this. If a program is launched by MAKE, its 0th parameter is its filename not full path of it. This is also for DMAKE. Keep this in mind, please. Hmm... Nonsense ? ^__________^

ParamStr(0) should return the full pathname of the executable running. See the tp7 manual.

If you want to get the 0th parameter on the commandline you can use argv[0]

Reply by email