Solved

Delphi Running

Posted on 1997-09-19
4
228 Views
Last Modified: 2010-04-04
Does anyone have the source code for delphi to make an application think that delphi is running ?
0
Comment
Question by:carceri
  • 2
4 Comments
 
LVL 12

Expert Comment

by:andrewjb
Comment Utility
Sounds like you're trying to use a disabled sharewhere component in a completed application. Why not pay the money like everyone else does?
0
 
LVL 3

Expert Comment

by:mirek071497
Comment Utility
I think so you need this for protecting you'r program:

Many components do this with checking if exist window of given name (ObjectInspector and others). I don't remember this names, but i think so i find this tomorrow if you tell me what version of delphi you use.

When You can't find window with this name then program is runnig without Delphi.
0
 

Author Comment

by:carceri
Comment Utility
I'm using Delphi 3
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 40 total points
Comment Utility
function IsDelphiRunning : boolean;
var H1,H2,H3,H4 : HWnd;
const
  A1 : array[0..12] of char = 'TApplication'#0;
  A2 : array[0..15] of char = 'TAlignPalette'#0;
  A3 : array[0..18] of Char = 'TPropertyInspector'#0;
  A4 : array[0..11] of Char = 'TAppBuilder'#0;
  T1 : array[0..8] of Char  = 'Delphi 3'#0;
begin
  H1 := FindWindow( A1,T1 );
  H2 := FindWindow( A2,nil);
  H3 := FindWindow( A3,nil );
  H4 := FindWindow( A4,nil );
  result := (H1<>0) and (H2<>0) and (H3<>0) and (H4<>0);
end;

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now