Sign in Join

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

Mailing lists / lazarus / 2009-02

ideintf path to executable

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Johannes Müller

Hi,

I wrote an IDE-plugin but i have a small problem to determine the path to the compiled executable.
I found the propertys in ideintf to geht the path of the project-files.

But how can I get the path, were the compiled executable of the active project is stored?

Johannes M?ller

Reply by email

andtag
to Johannes Müller

paramstr(0) contain the full path of the running executable.

Johannes M?ller ha scritto:

Show quoted text 10 lines
Hi, I wrote an IDE-plugin but i have a small problem to determine the path to the compiled executable. I found the propertys in ideintf to geht the path of the project-files. But how can I get the path, were the compiled executable of the active project is stored?

Reply by email

Leslie Kaye
to Johannes Müller: I wrote an IDE-plugin but i have a small problem to determine the path to the compiled…
Johannes M?ller wrote 9 lines
<div class="moz-text-flowed" style="font-family: -moz-fixed">Hi, I wrote an IDE-plugin but i have a small problem to determine the path to the compiled executable. I found the propertys in ideintf to geht the path of the project-files. But how can I get the path, were the compiled executable of the active project is stored?

ExtractFilePath(Application.ExeName); ?

regards
Leslie

Reply by email

Mattias Gärtner
to Leslie Kaye

Zitat von Leslie Kaye :

Show quoted text 11 lines
Johannes M?ller wrote: > <div class="moz-text-flowed" style="font-family: -moz-fixed">Hi, > > I wrote an IDE-plugin but i have a small problem to determine the path to > the compiled executable. > I found the propertys in ideintf to geht the path of the project-files. > > But how can I get the path, were the compiled executable of the > active project is stored? > ExtractFilePath(Application.ExeName); ?

He meant the executable path of the current project at design time.

See here
http://wiki.lazarus.freepascal.org/Extending_the_IDE#The_executable_.2F_target_file_name_of_a_project

Mattias

Reply by email