Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.009 c
1-32726
LazorenkoX
2002-03-30 00:26
2002.04.11
SendMessage or What?


1-32849
Deus
2002-03-28 19:03
2002.04.11
StayOnTop


1-32722
anod
2002-03-30 00:37
2002.04.11
Ошибка при создании popup меню


1-32894
DimaP
2002-03-29 18:14
2002.04.11
Цвета


1-32728
Softmaster
2002-03-29 17:06
2002.04.11
Помогите со связью с WORDом!




   Наверх