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.
|
|
Andrei Smolin
Add-in Express team
Posts: 18661
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 |
|
Dave O'Brien
Posts: 44
Joined: 2019-09-02
|
Of course. Sorry to trouble you. Brain fade. |
|