FIX: Fatal Error Using the Equal Sign on Excel Classed Property (316818)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 7.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

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

Modification Type:MajorLast Reviewed:2/5/2002
Keywords:kbAutomation kbbug kbCodeSnippet kbContainer kbDSupport KB316818