HOWTO: Edit Resources in Executables with Visual C++ 4.0

Last reviewed: October 3, 1997
Article ID: Q139030
The information in this article applies to:
  • The Resource Editor included with: Microsoft Visual C++, 32-bit Edition, versions 4.0, 5.0

SUMMARY

Windows NT provides APIs that allow you to modify resources in an executable or DLL. When the resource is opened, Msdev.exe checks to ensure that it can write to the file. If not, you will be warned.

Windows 95 does not support the APIs necessary to do this. When the resource is loaded, Msdev.exe gives this warning:

   Microsoft Developer Studio cannot save the modified resources back to
   this executable. The executable may be in use, or this version of
   Windows may not support updating resources in executables.

While the executable cannot be modified, the resources can be copied into another .RC file.
Keywords          : AppStudioIss
Version           : WINNT:4.0,5.0
Platform          : NT WINDOWS
Issue type        : kbhowto


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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 3, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.