[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 724
  • Last Modified:

ExecuteFile

ExecuteFile wont work
It says it is an undeclared identifier
What do I need to do to fix this?
I'm using Delphi 3.
0
Evil
Asked:
Evil
1 Solution
 
EvilAuthor Commented:
Edited text of question
0
 
sperlingCommented:
You need to add FMXUtils to your 'uses' clause. FMXUtils should be located somewhere in the demo subdirectory tree.

Regards,

Erik.
0
 
ronit051397Commented:
on the directory
C:\Program Files\Borland\Delphi 3\Demos\DOC\FILMANEX
there is an example project of how to use ExecuteFile.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dr_gonzoCommented:
Use
ShellExecute(handle, "explore", "path_to_folder", NULL, NULL, SW_SHOWNORMAL);

or why not

WinExec('myfile.exe', SW_SHOWNORMAL);
0
 
EvilAuthor Commented:
is there anyway to close the outside application?
0
 
ronit051397Commented:
sendmessage([application handle or window handle],wm_close,0,0);
0
 
EvilAuthor Commented:
How do I know the Application handle or Window Handle?
0
 
mirek071497Commented:
function FindWindow(Classname, WindowName: PChar): HWnd

if You need close You'r application then You know ClassName and WindowName.

this example find Progman handle

var
  a : array[0..40] of char
  h : thandle;
begin
   StrPCopy( a, 'Progman' );
   h := FindWindow( a, nil );
end;

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now