Outlook Add-In not adding in to Outlook

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

Outlook Add-In not adding in to Outlook
Outlook Add-In problem 
Dave O'Brien




Posts: 44
Joined: 2019-09-02
I've created a test add-in for Outlook using the wizard, but it won't install into Outlook. "Is not a valid office add-in". I haven't created one of these from scratch before, just worked on existing projects.

What am I missing? It looks to be formed exactly like one that works fine, just with nothing much in it.


library Test;

uses
  ComServ,
  ComObj,
  Windows,
  adxAddIn,
  Test_TLB in 'Test_TLB.pas',
  Test_IMPL in 'Test_IMPL.pas' {AddInModule: TAddInModule} {Test_A: CoClass};

exports
  DllGetClassObject,
  DllCanUnloadNow,
  DllRegisterServer,
  DllUnregisterServer;

{$R *.TLB}

{$R *.RES}

begin
end.

unit Test_IMPL;

interface

uses
  SysUtils, ComObj, ComServ, ActiveX, Variants, Outlook2000, Office2000, adxAddIn, Test_TLB, System.Classes;

type
  TTest_A = class(TadxAddin, ITest_A)
  end;

  TAddInModule = class(TadxCOMAddInModule)
    adxOlExplorerMainMenu1: TadxOlExplorerMainMenu;
  private
  protected
  public
  end;

implementation

{$R *.dfm}

initialization
  TadxFactory.Create(ComServer, TTest_A, CLASS_Test_A, TAddInModule);

end.
Posted 27 Oct, 2022 21:35:58 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Dave,

The add-in bitness must be the same as the bitness of Office.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Oct, 2022 05:56:07 Top
Dave O'Brien




Posts: 44
Joined: 2019-09-02
Of course. Sorry to trouble you. Brain fade.
Posted 30 Oct, 2022 17:21:08 Top