Page 1 of 1

Question on WINEXEC

Posted: Wed Jul 18, 2007 1:53 pm
by driessen
Hello,

What is the easiest way to start Outlook from a FWH-application, using WINEXEC() ?

Thanks.

Re: Question on WINEXEC

Posted: Wed Jul 18, 2007 2:51 pm
by Enrico Maria Giordano
You better use OLE Automation to start Office Outlook.

EMG

Posted: Wed Jul 18, 2007 3:21 pm
by driessen
I agree.

I use OLE automation to start Office Outlook.

It works fine with Outlook 2000, XP or 2003.

But in Outlook 2007 the problems begin.

Using the same source, I got an error when sending emails from my FWH-appliction when Outlook is not started manually.

This error says :
E_FAIL: RECEPIENTS
This error happens in :
win32ole => TOLEAUTO:RECEPIENTS(0)
If I start Outlook manually before sending my email, everything works fine.

That's why I was looking for starting Outlook automatically in my FWH application.

Thanks for your answer.