How to Find Out if Delphi is Running

Posted December 15th @ 9:29 pm by m3Rlin

You may want your program to check if Delphi is running. Well, if so try out this code. This is the method for programs:

function IsDelphiRunning: Boolean;
begin
Result := (FindWindow(’TAppBuilder’, nil) > 0);
end;
If you want to check if Delphi is running and you are creating VCL components then you should check for the csDesigning flag.
Here’s [...]

How to Start Microsoft Internet Explorer

Posted December 15th @ 9:25 pm by m3Rlin

Since Internet Explorer is a part of Microsoft Windows 95 (OSR 2 and OSR 2.1), 98, ME, NT, 2000, XP or Windows Vista you may want to add a link to your home page that will start Microsoft Internet Explorer (MSIE). Here’s the code to do so:

uses
Windows, {$ifdef ver90} OLEAuto {$else} ComObj {$endif};

procedure [...]