Microsoft KB Archive/115474

Invalid Filename Error Dialog Returns Incorrect String

PSS ID Number: Q115474 Article last modified on 05-16-1998

windows:3.0,4.0,4.0a,4.0c

WINDOWS

================================================================ ==

The information in this article applies to:

 == Microsoft PowerPoint for Windows, versions 3.0, 4.0, 4.0a, 4.0c == 

= SYMPTOMS =

When an invalid filename is entered into the Save As text box, PowerPoint for Windows displays an error message with the wrong filename. The wrong filename in the error message may divert your attention away from the problem, which is that a filename longer than eight characters has been entered into the text box.

= RESOLUTION =

To correct this problem, save the file with a name of eight characters or less.

= STEPS TO REPRODUCE PROBLEM =

  Create a presentation in PowerPoint 3.0 or 4.0 for Windows.   From the File menu, choose Save As and enter an invalid filename with a .PPT extension. For example: POWERPTBUG.PPT Choose OK.   You will receive an error message similar to the following: C:.DLL Sorry, the filename is invalid. 

The filename POWERPTBUG.PPT is reported in the error message incorrectly as POWERPTBUPOBJ.DLL.

= MORE INFORMATION =

COMMDLG.DLL returns a filename with extraneous characters after the first eight characters in response to the GetSaveFileName function when you enter a filename that is longer than eight characters. Truncating the filename in the error dialog box to eight characters is not a viable option because the extension (which is crucial in knowing what to do with the file) would be lost.

Additional query words: 3.00 4.00 power point powerpt 8 dialog box err winppt 4.00a 4.00c msg ====================================================================== Keywords : kberrmsg kbusage Version : windows:3.0,4.0,4.0a,4.0c Platform : WINDOWS Hardware : x86 Issue type : kbprb ============================================================================= Copyright Microsoft Corporation 1998.