[DUG] Detecting running from Delphi
Nick Fauchelle
nick at unica.co.nz
Wed Aug 30 10:22:06 NZST 2006
Searching google for
delphi detect ide
shows lots of results
like
--
inIDE := DebugHook <> 0;
DebugHook is defined in System.pas and is set to 1 or >1 when debugging
in the IDE.
--
which confirms your answer.
David Brennan wrote:
>
> Actually, to answer my own problem, it appears that checking DebugHook
> in System.pas will do it (not that I have tested it yet).
>
>
>
> Since I asked the question, anyone got anything to add to that? Eg a
> better way etc.
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> *From:* delphi-bounces at ns3.123.co.nz
> [mailto:delphi-bounces at ns3.123.co.nz] *On Behalf Of *David Brennan
> *Sent:* Wednesday, 30 August 2006 10:14 a.m.
> *To:* 'NZ Borland Developers Group - Delphi List'
> *Subject:* [DUG] Detecting running from Delphi
>
>
>
> Hi,
>
>
>
> Does anyone know a way of easily (ie in a few lines) detecting that a
> Delphi application is being run from Delphi as opposed to being run by
> double clicking the executable?
>
>
>
> Cheers,
>
> David.
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
More information about the Delphi
mailing list