Вниз
Скачать: CL | DM;

Как вызвать ?   Найти похожие ветки 

 
SemFLY ©   (2002-07-12 18:23) [0]

Я создал отдельный поток TThread. А как теперь мне вызвать эту процедуру в основном модуле программы, RF.Execute не работает.


unit Lame_Rename;

interface

uses
Windows,
SysUtils,
Classes,
Dialogs,
Lame_Code;

type
RF = class(TThread)
private
{ Private declarations }
protected
procedure Execute; override;
end;

implementation

{ RF }

procedure RF.Execute;
var
PI: TProcessInformation;
Success: integer;
SearchRec: TSearchRec;
begin
WaitForSingleObject(pi.hProcess,Infinite);
Success := FindFirst(ExtractFileName(Form1.CheckListBox1.Items[i]),faAnyFile,SearchRec);
if Success = 0 then
begin
RenameFile(OutFile,SaveMp3 + ExtractFileName(ChangeFileExt((Form1.CheckListBox1.Items[i]),".mp3")));
end;
FindClose(SearchRec);
end;
end.


-------
Спасибо !


 
Skier ©   (2002-07-12 18:26) [1]

>SemFLY

constructor Create(CreateSuspended: Boolean);

Description

Call Create to create a thread in an application. If CreateSuspended is False, Execute is called immediately. If CreateSuspended is True, Execute won’t be called until after Resume is called.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
1-81213
SPeller
2002-07-14 09:22
2002.07.25
Пристыковать TCanvas к TCustomPanel


1-81308
Spooky
2002-07-12 10:10
2002.07.25
Вставка строки в ячейку Grid по нажатию кнопки


3-81178
Nebula
2002-07-04 14:54
2002.07.25
IB SQL


1-81254
SemFLY
2002-07-14 20:37
2002.07.25
DOS-Окно и информация в нём.


3-81194
DmitryN
2002-07-05 08:25
2002.07.25
SQLDMO not registered...????




   Наверх