Solved

Delphi Running

Posted on 1997-09-19
4
229 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
ID: 1345551
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
ID: 1345552
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
ID: 1345553
I'm using Delphi 3
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 40 total points
ID: 1345554
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

912 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

20 Experts available now in Live!

Get 1:1 Help Now