FIX: Scribble File Extension Conflicts with Screen SaversLast reviewed: September 18, 1997Article ID: Q126751 |
1.50 1.51 1.52 | 2.00 2.10
WINDOWS | WINDOWS NTkbinterop kbole kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSCreating or activating embedded or linked OLE objects-based files saved with the MFC server sample "Scribble" fails in unexpected ways. Two common scenarios are:
CAUSEThe .SCR file extension used by Scribble is associated with another file type, typically screen saver applications.
RESOLUTIONChange the file extension used by Scribble Documents to something that is not already associated with a file type, for example .SCB. After changing the file extension, you will need to run Scribble once in standalone mode so it can update the system registry. The file extension can be changed by editing the string resource IDR_SCRIBTYPE in the Scribble application. Initially the string value is:
\nScrib\nScrib\nScrib Files (*.scr)\n.SCR\nScribble.Document.1\n Scrib Document\nSCRI\nscri FilesTo change the file extension to .SCB, edit the string value to look like this:
\nScrib\nScrib\nScrib Files (*.scb)\n.SCB\nScribble.Document.1\n Scrib Document\nSCRI\nscri Files STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit edition, version 4.0.
MORE INFORMATIONMFC Applications can update the file associations maintained in the system registry by calling CWinApp::RegisterShellFileTypes(). However, RegisterShellFileTypes() does not replace an existing association. Thus when an association already exists for the .SCR file extension, nothing is added to the registry to indicate that Scribble should be used to create or edit these files. This situation is most likely to occur on Windows 95, as .SCR files are associated with Screen Saver applications when Windows 95 is installed.
|
Additional reference words: 1.50 2.50 1.51 2.51 1.52 2.52 2.00 3.00 2.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |