64bit Addin doesn't load in Outlook 2019 64bit

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

64bit Addin doesn't load in Outlook 2019 64bit
 
Nick Malden Malden




Posts: 23
Joined: 2007-09-25
Windows 10 with all updates.
Office 2019 MSO 16.0.10730.20102 (64bit)
Delphi XE5 Update 2
I have downloaded your adxOLGetSMTPAddress project as I am finding that the SMTP address code is not working with this latest version of office. However, although I can build and load the 32bit dll into 32bit Office, the 64bit dll registers OK using regsvr32, but the Addin doesn't appear in Outlook. It's in the addin list but unticked. When trying to tick it shows the message "a runtime error occurred during the loading of the com add-in" and it won't load.
Can you help please?
Posted 06 Sep, 2019 08:06:38 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Nick,

That code makes sense in 32bit Outlook versions only. Originally, it targeted a pre-2010 Outlook.

In Outlook 2010 and above, you use the Outlook object model: check the first post at https://www.add-in-express.com/forum/read.php?FID=1&TID=9124.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Sep, 2019 08:17:21 Top
Nick Malden Malden




Posts: 23
Joined: 2007-09-25
Hi Andrei
Thank you for the quick response. I've downloaded the sample from that link adxtoys2olem.exe and that won't install in 64bit outlook either. Same error.
Is there any way to get the SMTP address with a 64bit plugin in Office 64bit?
Appreciate any pointers/help.
Nick
Posted 06 Sep, 2019 08:41:57 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Nick,

Please check the page above: it shows the way to follow in 32bit and 64bit Outlook versions starting from Outlook 2010.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Sep, 2019 09:34:10 Top
Nick Malden Malden




Posts: 23
Joined: 2007-09-25
Andrei
I'm sorry if I'm being slow, but that link talks about appointments not outlook emails and in any case doesn't seem to offer any solution. Could you check that you have posted the correct link, and if so be a bit more specific about exactly haw to get the 64 bit version of the senders SMTP address please?
Many thanks
Nick
Posted 09 Sep, 2019 02:57:55 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Nick,

The appt.Recipients.Item(1).AddressEntry.GetExchangeUser.PrimarySmtpAddress call can also be made using a mail item: mail.Recipients.Item(1).AddressEntry.GetExchangeUser.PrimarySmtpAddress. This code path works in both 32 and 64bit versions in Outlook 2010 and above. This is why I suggested to use the Extended MAPI based code from that example in pre-2010 Outlook versions only.

Does this help?


Andrei Smolin
Add-in Express Team Leader
Posted 09 Sep, 2019 05:04:24 Top
Nick Malden Malden




Posts: 23
Joined: 2007-09-25
Andrei

OK, thank you. So just to be clear, I can no longer use Extended MAPI based code in a 64bit Office environment like in Office 2019? (The add-in doesn't load).

Do you have any complete examples of using the mail.Recipients.Item(1).AddressEntry.GetExchangeUser.PrimarySmtpAddress?
Not really your code I know, but I'm not sure where to look next.

By the way, I'm trying to find the sender of the email, not the recipients. In this instance, I'm looking at inbox emails from within our organisation to try to determine the sender.

Thanks
Nick
Posted 09 Sep, 2019 05:18:47 Top
Nick Malden Malden




Posts: 23
Joined: 2007-09-25
Hi Andrei
I've send the sample project from your site by email. Having removed the Extended MAPI calls, the 64 bit dll still won't load.
Kind regards
Nick
Posted 09 Sep, 2019 05:41:29 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Nick,

The files you've sent me contain a 32bit DLL; it loads fine in a 32bit Outlook. I've rebuilt the project and the new 64bit DLL loads in a 64bit Outlook.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Sep, 2019 06:34:50 Top
Nick Malden Malden




Posts: 23
Joined: 2007-09-25
Andrei
Thanks for checking but have you tried Outlook 2019? That's the one I'm having trouble with. It loads OK in Outlook 2010.
Nick
Posted 09 Sep, 2019 06:40:22 Top