- William Beale
- PowerBuilder
- Sunday, 16 July 2023 03:59 AM UTC
Hi,
I have OLE code to connect to MS Outlook but since upgrading Outlook to the current version ( 1.2023.630.100) the code no longer works. This is the code that worked before the upgrade:
oleApplication = CREATE n_OLEObject
// Connect to Outlook.
li_rc = oleApplication.ConnectToNewObject("Outlook.Application")
IF li_rc <> 0 THEN
MessageBox("Error connecting to Outlook", &
+ "Check if Outlook is Running - ~r" + oleApplication.of_ConnectError(li_rc), StopSign!)
RETURN -1
END IF
I suspect "Outlook.Application" may no longer be relevant but can't find anything on the web.
I'm using PB 2019 R3.
Advice would be appreciated.
Bill Beale
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.