Microsoft KB Archive/316818

= FIX: Fatal Error Using the Equal Sign on Excel Classed Property =

Article ID: 316818

Article Last Modified on 2/5/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q316818



SYMPTOMS
When you use the Visual FoxPro 7.0 CREATEOBJECTEX function and add the cIID clause (Interface ID GUID) to create an early-bound instance of a Microsoft Excel class, the following error may occur when you use the equal sign (=) to assign a value to one of the class properties:

Fatal error: Exception code=C0000005

NOTE: IntelliSense must be turned on in Visual FoxPro 7.0 for this error to occur.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in Microsoft Visual FoxPro for Windows 7.0. This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



Steps to Reproduce Behavior
 On the Tools menu, click IntelliSense Manager and make sure that the Enable IntelliSense check box is selected.  Enter the following commands in the Command window: x = CREATEOBJECTEX(&quot;Excel.Application&quot;,&quot;&quot;, ;     &quot;{000208D5-0000-0000-C000-000000000046}&quot;) x.Application.ActiveCell.Value  Type the equal sign symbol after the word &quot;Value&quot;. The error occurs and causes Visual FoxPro 7.0 to close.

Additional query words: kbVFP700sp1fix

Keywords: kbbug kbfix kbcodesnippet kbcontainer kbautomation KB316818

-

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

© Microsoft Corporation. All rights reserved.