Where was the dll installed

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

Where was the dll installed
 
Yair Eshel




Posts: 9
Joined: 2007-02-27
Well, I hope this is the last question for now. I've finished creating my add-in, and now I want to deploy it to the world, and share it with my fellow man. :D
I have several files that I want to add to my DLL, as a part of the add-in. A man installing the program, can probably install it on any dir. How can I get the dir the DLL was installed on as a parameter (delphi)? I'm quite sure this is trival, but I can't find it anywhere on the web.
Posted 20 Mar, 2007 06:28:35 Top
Dmitry Kostochko


Add-in Express team


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

See the COMAddInClassFactory.FilePath property.

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.


Posted 20 Mar, 2007 07:21:03 Top
Brendan Berney




Posts: 8
Joined: 2007-06-26
Hi,

How do I access ComAddinClassFactory from inside an Outlook Extension form? I cannot seem to find it in any units...

Thanks,
Brendan
Posted 26 Jun, 2007 06:45:06 Top
Fedor Shihantsov


Guest


Hi Yair,

Use the following code:
(Self.AddinModule as TAddInModule).COMAddInClassFactory.FilePath;
Posted 26 Jun, 2007 07:36:10 Top
Brendan Berney




Posts: 8
Joined: 2007-06-26
Hi Fedor,

Thanks for that. Although it compiles, I get an AV when I actually try to use it in the form. However, it works fine in the AddInModule instance itself... Is there a workaround? Can I access my form from the AddInModule instance?

Thanks,
Brendan
Posted 26 Jun, 2007 09:17:31 Top
Fedor Shihantsov


Guest


Can I access my form from the AddInModule instance?

Use the adxolFormsManager.Items[].FormInstances function for access to ADXOlForm from AddinModule.

Is there a workaround?

Curiously, I have just tested the following code successfully:
procedure TadxOlForm1.Button3Click(Sender: TObject);
begin
ShowMessage((self.AddinModule as TAddInModule).COMAddInClassFactory.FilePath);
end;

This code you should use for visible TADXOlForm.
Where do you use this code?

Posted 26 Jun, 2007 11:22:27 Top
Brendan Berney




Posts: 8
Joined: 2007-06-26
Hi,

I'm using it from within an

adxOlFormADXSelectionChange

event.
Posted 26 Jun, 2007 11:37:36 Top
Fedor Shihantsov


Guest


I have just tested the following code successfully:

procedure TadxOlForm1.adxOlFormADXSelectionChange(Sender: TObject);
begin
Memo1.Lines.Add((self.AddinModule as TAddInModule).COMAddInClassFactory.FilePath);
end;

What Add-in Express version do you use?
Posted 26 Jun, 2007 12:33:05 Top