C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28630
Number of posts: 94612

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
VISUAL C++ resource.h/rc madness mess Posted by andwan0 on 18 Feb 2011 at 4:10 PM
This is really for those Visual C++ 6.0 programmers out there.

I have a workspace which builds 3 apps & dozen of DLLs. Each project has it's own resources (resource.h & corresponding RC file).

I like to merge the resources of the 3 main apps into one. I notice the 3 apps share some common strings. However, due to 10-20 years of development, the defined constants that have same name may not have same number.

App1 resource.h
#define IDS_STRING1 82

App2 resource.h
#define IDS_STRING1 79

App3 resource.h
#define IDS_STRING1 83


Am wondering if there's a tool out there that can clean up multiple resources... to make final/eventual merging easier.

Problems lie when it's a common define constant, but the string literal are actually different.

So maybe should have a batch routine to index/map by the string literal first, then ensure the define constant matches, if not then flag it.

My resource.h files are huge, millions of lines... hence why am wondering if there exists a resource.h cleaner.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.