[DUG] Detecting running from Delphi
Alister Christie
alister at salespartner.co.nz
Wed Aug 30 12:05:31 NZST 2006
DebugHook is what I use - if that's any reassurance.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
Nick Fauchelle wrote:
> 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
>>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
More information about the Delphi
mailing list