problem compile project

Add-in Express™ Support Service
That's what is more important than anything else

problem compile project
 
Karim




Posts: 170
Joined: 2006-01-02
Hi,
In this example I want to replace outlook2000.pas by outlookXp.pas
but i can't compile project.

http://www.add-in-express.com/projects/adx-ol-option-page-params.zip


Thanks
Posted 26 May, 2010 04:01:12 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Karim,

Please see the modified code below:


uses ...
   Outlook2000, OutlookXP;

  TAddInModule = class(TadxCOMAddInModule)
  protected
    procedure OptionsPagesAdd(ASender: TObject; const Pages: [B]Outlook2000.[/B]PropertyPages); override;
  ...

procedure TAddInModule.OptionsPagesAdd(ASender: TObject; const Pages: [B]Outlook2000.[/B]PropertyPages);
begin
...

Posted 26 May, 2010 04:52:17 Top
Karim




Posts: 170
Joined: 2006-01-02
Hi Dmitry,

Ok, But how to do NOT use outlook2000.pas

Thanks
Posted 26 May, 2010 07:51:13 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Karim,

I am afraid it is not possible. The point is that Add-in Express is built with the Outlook2000.pas unit and if you replace it with OutlookXP in your code, you will get an error during compilation. So, you can add OutlookXP unit to your uses clause and then type cast all needed Outlook2000 interfaces to OutlookXP interfaces.
Posted 26 May, 2010 12:22:41 Top
Karim




Posts: 170
Joined: 2006-01-02
Thank you for your reactivity.
Posted 27 May, 2010 05:21:25 Top