DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Detect whether your program runs in the IDE

Below is another way to detect whether your program runs in the Delphi IDE. The symbol DebugHook is defined in a system unit (tested here with Delphi 5), so you do not need to add any units to the USES clause as shown in the example below.

program p;
   if DebugHook<>0 then 
     ShowMessage('Running in Delphi IDE');
You don't like the formatting? Check out SourceCoder then!
Generated 16:01:12 on Jul 11, 2020