This site is temporarily down. Please come back. Detect if Delphi is running
DelphiFAQ Home Search:

Detect if Delphi is running

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

If you plan to deploy a component or application for demo purposes, you may want to have it run only if the Delphi IDE is loaded.
The following piece of code checks this:

  if  (FindWindow('TApplication', nil) = 0) or
      (FindWindow('TAlignPalette', nil) = 0) or
      (FindWindow('TPropertyInspector', nil) = 0) or
      (FindWindow('TAppBuilder', nil) = 0) then
  begin
    ShowMessage('Delphi is not running!');
  end

Content-type: text/html

Comments:

2006-02-21, 19:57:43
anonymous from Chile  
Very wrong procedure.... Just Dock your ob ject inspector to any other windows, and rhis procedure fails

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: