Home > Back-end >  Delphi generated EXE files on your computer can run on other computer interface is to pick out the t
Delphi generated EXE files on your computer can run on other computer interface is to pick out the t

Time:09-15

Unit: QQQ.

Interface

USES the
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

Type
TForm1=class (TForm)
Edit1: TEdit;
Edit2: TEdit;
For: TButton;
Procedure Button1Click (Sender: TObject);
Procedure FormCreate (Sender: TObject);
Procedure FormClose (Sender: TObject; Var Action: TCloseAction);
Private
{Private declarations}
Public
{Public declarations}
The end;

Var
Form1: TForm1;

Implementation

{$R *. DFM}

procedure TForm1.Button1Click(Sender: TObject);
The begin
Edit2. Text:=EDit1. Text;
The end;

Procedure TForm1. FormCreate (Sender: TObject);
The begin

Showmessage (" SSSSSSSSSSS ");
Edit1. Text:='1';
Edit2. Text:='333';
The end;

Procedure TForm1. FormClose (Sender: TObject; Var Action: TCloseAction);
The begin
Showmessage (' 2222222 ');
The end;

End.
This is the test code generated EXE files on other computers cannot display

CodePudding user response:

The unit file no problem, see engineering documents,

CodePudding user response:

Compiled file, you have to take the library files compiling,

CodePudding user response:

refer to the second floor lyhoo163 response:
when you compile files, to bring the library files compiling,


UPUP

Should be lack of library files,

Search on the issue of the fully compiled, should be able to solve

CodePudding user response:

Should not compile the problem, if it is to compile, run time will be prompted to the lack of corresponding BPL package,
Right-click menu, try to run as an administrator,

CodePudding user response:

Why in the EDIT control code written on the FORMCREATE event, no popup EXCEPTION is the strange things

Should write code in FORMSHOW

FORMCREATE event, EDIT control has not been created good
FORMShow incident, the EDIT control is created

CodePudding user response:

Showmessage FORMCREATE event that row to remove
May and display

CodePudding user response:


Compile time, this is on the hook,

CodePudding user response:

Should be not selected

CodePudding user response:



Submitted to the modest, the previous post reply error,
Right, should cancel the "Build with the runtime packages" (EXE when using, need to run the package) "choice", and "F9 create EXE
"So, EXE can be run independently, or will need the Delphi runtime package, copy directory into the system, in order to run,

CodePudding user response:

The sandbox sandbox run?

CodePudding user response:

The
references to the tenth floor u010165006 response:
sandbox sandbox run?

From the tip of the building Lord, not a sandbox to run,

CodePudding user response:

11 references lyhoo163 response:
Quote: reference to the tenth floor u010165006 response:

The sandbox sandbox run?

From the tip of the building Lord, not a sandbox to run,


I may understand the wrong ~
  • Related