![]() |
Модераторы: MetalFan |
![]() ![]() ![]() |
|
jenya7 |
|
|||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 25.9.2007 Репутация: нет Всего: нет |
Создал add-in для MS Outlook. При регистрации получаю ошибку:
file not found Outlook_TLB.dcu Заранее спасибо. |
|||
|
||||
jenya7 |
|
||||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 25.9.2007 Репутация: нет Всего: нет |
вот мой код
{ 1. Step Create an ActiveX-Library Save the project as e.g. "OLAddIn.dpr" 2. Step Create an automation object Call the CoClass e.g. "AddIn" Save the Unit as "AddIn.pas" 3. Step Add to the uses clause - AddInDesignerObjects_TLB - Outlook_TLB add to the interface list of TAddIn - IDTExtensibility2 Add the following methods to TAddIn } - procedure OnConnection(const Application: IDispatch; ConnectMode: ext_ConnectMode; const AddInInst: IDispatch; var custom: PSafeArray); safecall; - procedure OnDisconnection(RemoveMode: ext_DisconnectMode; var custom: PSafeArray); safecall; - procedure OnAddInsUpdate(var custom: PSafeArray); safecall; - procedure OnStartupComplete(var custom: PSafeArray); safecall; - procedure OnBeginShutdown(var custom: PSafeArray); safecall; { and complete the class by pressing Ctrl-Shft-C 4. Step Register the COM-object with "run / register ActiveX Server" Register the AddIn, so that the Addin will be recognized by Outlook - Create a new key: HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\OLAddIn.AddIn - create a DWOrd "LoadBehavior" with the value 3 5. Step Compile the AddIn Start Outllok Sourcecode ********************************************************************************* }
Это сообщение отредактировал(а) Alexeis - 26.9.2007, 11:57 |
||||
|
|||||
2fank |
|
|||
Новичок Профиль Группа: Участник Сообщений: 25 Регистрация: 28.6.2007 Репутация: нет Всего: нет |
Project -> Import Type Library -> Microsoft Outlook xx.x Object Library -> Create Unit
|
|||
|
||||
![]() ![]() ![]() |
Правила форума "Delphi: ActiveX/СОМ/CORBA" | |
|
Запрещено: 1. Публиковать ссылки на вскрытые компоненты 2. Обсуждать взлом компонентов и делиться вскрытыми компонентами
Если Вам помогли, и атмосфера форума Вам понравилась, то заходите к нам чаще! С уважением, Rrader, Girder. |
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей) | |
0 Пользователей: | |
« Предыдущая тема | Delphi: ActiveX/СОМ/CORBA | Следующая тема » |
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |