Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook OLE error code 0x00000001: Incorrect function
Message
 
To
01/02/2006 09:35:29
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01092329
Message ID:
01184337
Views:
17
Hi Gary,

More and more of my clients are getting this same error. We have found it to be linked to the (automatic) security updates for Office 2003. When we remove the update (downgrade from SP2 to SP1) everything works fine again.

It looks from the error message, that the upgrade changes the interface to one of the functions in Outlook. Does anyone know which one and how?

Regards,
Vidar

>Im having problems with automating emails. The application has been working fine for YEARS, but all of a sudden on one pc only I get:
>
>OLE error code 0x00000001: Incorrect function
>
>When trying to display outlook, My codes looks like this:
>
>loOutlook=CREATEOBJECT("Outlook.Application")
>loMessage=loOutlook.CreateItem(olMailItem)
>loMessage.To=somone@anaddress.com
>loMessage.Subject="test message"
>loMessage.Body="My test"
>loMessage.Attachments.Add(<PdfFile>)
>
>loMessage.Display()       && Error happens Here!
>
>loMessage=.NULL.
>loOutlook=.NULL.
>
>
>any ideas?
>
>Gary.
Vidar Johannessen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform