Microsoft KB Archive/924800

= An illegal operation may occur when you use a custom application or an add-in in Outlook 2007 =

Article ID: 924800

Article Last Modified on 4/25/2007

-

APPLIES TO


 * Microsoft Office Outlook 2007

-



When you use a custom application or an add-in in Microsoft Office Outlook 2007, an illegal operation may occur. This behavior may occur if the following conditions are true:
 * You make an _IDocSiteControl interface call to modify the IDispatch array interface. For example, you may do this to try to suppress attachments in Outlook 2007 e-mail messages.
 * You modify the IDispatch array interface by using C#.



CAUSE
This error occurs because the IDispatch array interface does not support early binding calls.



WORKAROUND
To work around this issue, use late binding for IDispatch array interface calls by using the IDispatch::Invoke call.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: OL12 OL2007 OL2k7 Outlook12 Outlook2007 Outlook2k7 2k7 12

Keywords: kbtshoot kbprogramming kbexpertisebeginner kbprb KB924800

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.