Вниз
Скачать: 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.011 c
1-81319
nick_chay
2002-07-10 16:03
2002.07.25
Edit в рамке


1-81266
Gala
2002-07-14 12:27
2002.07.25
отмена выделения текста в ячейке DBgrid


1-81264
Балков Евгений
2002-07-15 11:12
2002.07.25
Конвертирование Hex - ов


1-81271
maxim2
2002-07-15 13:18
2002.07.25
Подскажите куда вставлять объявление меток


6-81406
niko4543
2002-05-13 22:49
2002.07.25
Мастера помогите




   Наверх