D
David L
I have found a problem with my VB6 application after moving to
OfficeXP.
If Outlook is not already started, following VB6 code will fail.
Outlook 2000 has no problem in executing the code and complete the
rest of the task, which is
to send an email to another intranet user via Exchange server.
Dim olApp as Outlook.Application
Dim olMsg as Outlook.MailItem
Set olApp = New Outlook.Application
Set olMsg = olApp.CreateItem(0) <--- this fails with a general
error message
In all cases, the code works fine if Outlook is already up and
running.
I am looking for a solution that does not involve the use of low level
MAPI code, use of additional add-ins, CDO, and hopefully I do not need
to ShellExecute Outlook before this code is executed.
Thanks in advance for a solution and possibly explanation of what
happened.
David
8Oct 2003
OfficeXP.
If Outlook is not already started, following VB6 code will fail.
Outlook 2000 has no problem in executing the code and complete the
rest of the task, which is
to send an email to another intranet user via Exchange server.
Dim olApp as Outlook.Application
Dim olMsg as Outlook.MailItem
Set olApp = New Outlook.Application
Set olMsg = olApp.CreateItem(0) <--- this fails with a general
error message
In all cases, the code works fine if Outlook is already up and
running.
I am looking for a solution that does not involve the use of low level
MAPI code, use of additional add-ins, CDO, and hopefully I do not need
to ShellExecute Outlook before this code is executed.
Thanks in advance for a solution and possibly explanation of what
happened.
David
8Oct 2003