PRB: Wrong Resources Loaded by Resource Editor or AppStudioLast reviewed: July 24, 1997Article ID: Q135912 |
The information in this article applies to:
SYMPTOMSIntermittently, The Resource Editor opens the resources, but the latest modifications are not visible in the editor. This may occur with a project that uses a version control system that doesn't update the timestamp on a file when the file is checked out. It is not a bug in the Resource Editor.
CAUSEThe Resource Editor generates and uses a .APS file. This file contains a binary format of the resources. The Resource Editor loads the resources from this file to reduce the time required to load them. The article mentioned in the "References" section of this article gives more information about this file. The Resource Editor uses dependency checking to determine if the this file has to be regenerated. In the following scenario, the .APS file is not regenerated. None of the following steps occur simultaneously.
RESOLUTIONEnsure that the resources are loaded from the resource file instead of from the .APS file whenever the resource file has been updated. One approach is to use a source control system that updates the timestamp of a file upon checkout. The source control system may have a timestamp update option that can be set. If this approach is not possible, delete the .APS file after checking out the resources from source code control software. In either case, the Resource Editor will then open the resources from the resource files and regenerate the .APS file.
STATUSThis behavior is by design.
MORE INFORMATIONTo delete the .APS file after checking out the resource, a menu item can be added to the Tools menu. The following sections give one way to implement the menu item.
Steps to Implement Menu ItemTo implement a menu item to delete the .APS file, follow these steps:
Steps to Add New Menu Item to Tools Menu in Visual C++ 1.5x
REFERENCESFor more information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q132340 TITLE : Common File Extensions Used by Visual C++ |
Keywords : AppStudioIss kbtshoot
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |