[DUG] Detecting environment

John Bird johnkbird at paradise.net.nz
Tue Feb 21 14:51:04 NZDT 2006


Delphi 2006:

What are the current easiest way to:

1 - Detect if running in IDE? (google gives some complex code - I thought
there was a simple way)

	Best I have seen so far is:
	begin
	  if DebugHook<>0 then 
	    ShowMessage('Running in IDE');
	End;


2 - Get Windows Version - Still GetVersionEx?  (enough to know if Windows
95/98   or Windows 2000  or Windows XP)

John



More information about the Delphi mailing list