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

Вниз

Как в windows зарегистрировть своё расширение?   Найти похожие ветки 

 
Black_Shem   (2006-11-30 01:01) [0]

Понятно что в реестре,но вот в каких разделах,и какие параметры задавать?


 
novill ©   (2006-11-30 10:04) [1]

1. почитать мсдн на тему Creating a File Association
2. посмотреть как заданы другие типы файлов


 
Джо ©   (2006-11-30 11:05) [2]

>
>
> [0] Black_Shem   (30.11.06 01:01)
> Понятно что в реестре,но вот в каких разделах,и какие параметры
> задавать?

HKEY_CLASSES_ROOT


 
EIen ©   (2006-11-30 11:27) [3]

Можно зарегистрировать так:
procedure TForm1.Button1Click(Sender: TObject);
var
 R : TRegIniFile;
begin
 R := TRegIniFile.Create("");
 with R do
   begin
     RootKey := HKEY_CLASSES_ROOT;
     WriteString(".xxx","","xxx");
     WriteString("xxx","","Открывает файлы XXX");
     WriteString("xxx\DefaultIcon","","C:\YourProgram.Exe,0");
     WriteString("xxx\Shell","","This_Is_Our_Default_Action");
     WriteString("xxx\Shell\First_Action",
           "","This is our first action");
     WriteString("xxx\Shell\First_Action\command","",
           "C:\YourProgram.Exe /LotsOfParamaters %1");
     WriteString("xxx\Shell\This_Is_Our_Default_Action","",
           "This is our default action");
     WriteString("xxx\Shell\This_Is_Our_Default_Action\command",
           "","C:\YourProgram.Exe %1");
     WriteString("xxx\Shell\Second_Action",
           "","This is our second action");
     WriteString("xxx\Shell\Second_Action\command",
           "","C:\YourProgram.Exe /TonsOfParameters %1");
     Free;
   end;
end;


 
Black_Shem   (2006-12-01 17:24) [4]

всем спасибо



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

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

Наверх




Память: 0.47 MB
Время: 0.042 c
2-1164884290
pyJIoH
2006-11-30 13:58
2006.12.17
Экспорт в rtf. Ünicode =)


3-1160596997
БогданБ
2006-10-12 00:03
2006.12.17
Поиск по похожему номеру


3-1160502902
Lexa11_2002
2006-10-10 21:55
2006.12.17
Помогите написать запрос


15-1164746342
Loginov Dmitry
2006-11-28 23:39
2006.12.17
Test


15-1164356418
Курдль
2006-11-24 11:20
2006.12.17
"Гаишник удавится за иномарку"