Microsoft KB Archive/176061

From BetaArchive Wiki

Article ID: 176061

Article Last Modified on 1/22/2007



APPLIES TO

  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 4.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Visual Basic 4.0 Enterprise Edition
  • Microsoft Visual Basic 4.0 Standard Edition
  • Microsoft Word 97 Standard Edition



This article was previously published under Q176061

SYMPTOMS

When opening an embedded Microsoft Word 97 object in a separate application window, you get an extra blank document. This happens the second and any subsequent times you open the embedded document during your application session. If you trying to close the "dummy" document after you close the embedded document, you receive the following error message:

  • Windows NT

    File: Winword.exe - Application Error

  • Windows 95 or Windows 98

    This Program has preformed an illegal operation



RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The P1 version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

   Date      Time    Size        File name       Platform
   -------------------------------------------------------
   01.04.99  02:58   5.326.608   WinWord.exe     x86
   01.04.99  02:58   1.158.416   Wwintl32.dll    x86

                



STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Microsoft Word displays a blank dummy document during the second and any subsequent times that you open an embedded Word 97 document that is stored in an OLE control.

This behavior does not occur in Word 2000. This is because Word 2000 is implemented as an SDI application where each document is hosted in its own main window.

Steps to Reproduce the Behavior

  1. Create a new Standard EXE project. Form1 is created by default.
  2. Add an OLE control to Form1.
  3. From the Insert Object dialog box, choose Create New. From the Object Type list, select Microsoft Word Document.
  4. Enter some text in the embedded Word Document.
  5. Click elsewhere on the form to deselect the OLE control.
  6. Press the F5 key to run the project.
  7. Right-click the OLE control, and then choose Open.


Note You can also do this in code by issuing a DoVerb -2 command on the OLE control. For example, OLE1.DoVerb 2.

  1. After Word starts, on the File menu, click Close and Return to Unnamed.
  2. Repeat steps 7 and 8. A blank Document1 appears.
  3. Close the Document1 window in Word. You receive an error as described in "Symptoms".



Additional query words: word97 word 8.0

Keywords: kbhotfixserver kbqfe kbbug kbfix KB176061