Remapping resource script ID's | CodeGuru

Remapping resource script ID’s

This is code which a lot of people on the WinDev list keep requesting from me. It resequences the define’s in a resource.h file. I use it primarily for DLL’s when I don’t want the resource id’s to overlap with id’s used in other DLL’s or in the main program. The program simply renumbers all […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 7, 1998
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

This is code which a lot of people on the WinDev list keep requesting from
me. It resequences the define’s in a resource.h file. I use it primarily for
DLL’s when I don’t want the resource id’s to overlap with id’s used in other
DLL’s or in the main program. The program simply renumbers all ID_?, IDC_?
And IDS_? starting at a given value. A .inf file is written which retains
the settings for future use. IDS_?’s are maintained at their offset within
each 16 string table (ie “IDS_ % 16” is unchanged).

This is the source and a build (VC 5) for the RCRemap utility. I developed
it from source from an individual whose name I’ve forgotten. The code has
worked well for me [disclaimer on] but I make no claims as to its fitness
for any particular purpose. Use at your own risk [disclaimer off]. The code
is public domain as far as I’m concerned.

Download source – 21KB

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.