Solved

FindExecutable

Posted on 2000-03-21
1
1,072 Views
Last Modified: 2008-03-17
I am having problem with the parameter passing of FindExecutable API function.

Can somebody give an example ?

Thanks

Gustavo
0
Comment
Question by:voxel
1 Comment
 
LVL 2

Accepted Solution

by:
kotik earned 10 total points
ID: 2641366
I think this will help:

You have to allocate memory for the FileName variable:
var
FileName: PChar;
begin
FileName = GetMem(255);
FindExecutable(

    PChar('app.exe'),      // pointer to string for filename
    PChar('/'),      // pointer to string for default directory
    FileName      // pointer to buffer for string for executable file on return
   );
end;

Regards,
Kot
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

19 Experts available now in Live!

Get 1:1 Help Now