Solved

Delphi Running

Posted on 1997-09-19
4
234 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reconfigure Delphi Install? 2 60
How to renew a Delphi rad-studio licence? 5 69
Delphi Yen format 3 45
PHP preg_replace code convert to Delphi 14 66
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…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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