Вниз
Скачать: 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.44 MB
Время: 0.013 c
1-81329
saxon
2002-07-11 21:09
2002.07.25
Word Print


8-81384
otari
2002-03-14 02:03
2002.07.25
Пожалуйста кусок кода !!!


3-81205
Pro
2002-07-05 11:42
2002.07.25
SQL запрос с накоплением данных


3-81159
Bura
2002-07-03 13:43
2002.07.25
InterBase error


3-81187
Nebula
2002-07-04 14:53
2002.07.25
IB




   Наверх