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

Reply via email to