register dll sample code

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

register dll sample code
 
Nir L




Posts: 2
Joined: 2012-08-16
Hi,
Do you have an example of how to register the outlook Addin dll from my Delphi application ?
Suppose I want to register yours "Add-in Express Outlook Toys for VCL" (ADXToys2OL.dll)


Thanks
Nir
Posted 16 Aug, 2012 08:34:09 Top
Dmitry Kostochko


Add-in Express team


Posts: 2742
Joined: 2004-04-05
Hi Nir,

You can use the ShellExecute function, please see the code sample below:

uses ShellApi;

// ...
ShellExecute(0, 'open', 'regsvr32.exe', '/s '+ PChar(FileName), nil, SW_HIDE);
Posted 16 Aug, 2012 10:34:08 Top
Nir L




Posts: 2
Joined: 2012-08-16
Thanks,
Is it the same for xp/win7 32/64 bit ?
Where do you suggest to put the dll ?

Nir
Posted 17 Aug, 2012 02:40:54 Top
Dmitry Kostochko


Add-in Express team


Posts: 2742
Joined: 2004-04-05
Hi Nir,

Is it the same for xp/win7 32/64 bit ?


In general this is the common approach for all operating systems. But note, you need to register the 64-bit version of your add-in if 64-bit Office is installed on the target machine.

Where do you suggest to put the dll ?


Any local folder that is accessible (has Read&Execute permissions) to the end-user.
Posted 17 Aug, 2012 03:47:11 Top