Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.11;
Скачать: CL | DM;

Вниз

Как создать что-нибудь.lnk ?   Найти похожие ветки 

 
CrazyAngel ©   (2002-03-28 20:02) [0]

Люди помогите plssss , как создать что-нибудь.lnk т.е. ярлык на мою прогу ?


 
lipskiy ©   (2002-03-28 20:45) [1]

procedure TForm1.CreateShortcut(const FilePath, ShortcutPath, WorkDir, Description, Params:string);
var
obj: IUnknown;
isl: IShellLink;
ipf: IPersistFile;
begin
obj := CreateComObject(CLSID_ShellLink);
isl := obj as IShellLink;
ipf := obj as IPersistFile;
with isl do
begin
SetPath(PChar(FilePath));
SetArguments(PChar(Params));
SetDescription(PChar(Description));
SetWorkingDirectory(PChar(WorkDir));
end;
ipf.Save(PWChar(WideString(ShortcutPath)), False);
end;


 
CrazyAngel ©   (2002-03-28 20:49) [2]

>lipskiy
Спасибо , попробую ...



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

Текущий архив: 2002.04.11;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.012 c
1-32869
SeF
2002-03-23 00:49
2002.04.11
Путь к DLL


14-32970
Senia2002
2002-03-04 12:28
2002.04.11
Часики


14-32947
Ежик
2002-03-01 09:38
2002.04.11
Update Delphi6


1-32790
madburro
2002-03-31 23:38
2002.04.11
Help, please :)


1-32751
Vlad011
2002-03-30 16:20
2002.04.11
Classes и Tfilestream