Solved

Delphi Running

Posted on 1997-09-19
4
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

623 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