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:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *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
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to