Creating Menus, Dialogs, & Other Resources for Microsoft's Free Visual Studio Express Tools
Create RC Files for Your C++ Project Using a Pair of Easy-to-use Free Tools
While I enjoy having these tools for free, and most of the missing features I don't notice. Except for one: resource editing. If you want to add icons, dialogs, or menus to your C++ programs, you'll have to manually create an RC file. Or do you?
To find out, I went looking for an open source resource editor. Of course, I could just break down and install my real copies of Visual C++ or even break out some other commercial resource editors I have, but I wanted a free solution to go along with the free Visual Studio Express product. I looked pretty hard and I couldn't find a single tool that did what I wanted. However, I did find two tools that together would do the job.
The first tool is the excellent XN Resource Editor. What doesn't this tool do? It will create menus, icons, dialogs, cursors, and everything else you can think of. Oh yeah, but while it will read RC files, I couldn't find any way to make it save an RC file! It will, however, do a nice job saving to a binary res file.
Of course, you could just leave it at that and let Visual Studio include the .res file. So I guess you can just use one tool. But I wanted an RC file that I could easily manipulate -- at least for strings and IDs.
That's when I downloaded Resource Hacker. This tool is made to load resources from just about anywhere. You can do certain things with those resources (although you can't actually edit them). However, this tool will save a proper RC file.
So the steps are:
1. Use XN Resource Editor to create your resources
2. Save resources as a .RES file
3. Open the .RES file with Resource Hacker
4. Save as a .RC file
5. Add the RC file to your Visual Studio project.
You may have to touch up your RC file a little if you get any errors (for example, include winuser.h).
XN can read an RC file, so you can "round trip" by reading the file from step 4 into XN, making changes, and then repeating steps 2 through 4.
Published by Al W
Al Williams is a former columnist and editor for several major magazines. He's also the author of over 15 books on computer technology and electronics. View profile
Learn More About Microsoft Office 2007; Download the Free TrialIn this article you will learn how to experience the free trial of Microsoft Office 2007.
Microsoft Recommends FireFox, is it the End Days?Microsoft AdCenter makes some interesting suggestions to customers to get their ad program to work. Has Internet commerce stooped so low regarding the value of a customer?
X06 News Wrap: Microsoft Announces Multiple Halo Titles, Splinter Cell E...Microsoft brings their A-game to Spain where they announced so many soon-to-be best sellers that Sony probably went running home to mommy.
How Many Will Jump to Adopt Microsoft's Windows Vista when it Releases?The question Microsoft - and many other companies - want answered is both a simple and straightforward one. Specifically, that question is how many will rush to deploy Windows V...
- Visual Studio Express a Free Web Development Tool from Microsoft
- Creating a HelloWorld Console Application Using VisualBasic.NET
- Get a (Microsoft) Life
- Be More Efficient in Your Minimized Windows with Visual Task Tips
- Microsoft's Expression Studio Challenges Adobe's Turf
- NetBeans 5.5 With Visual Web Pack - Basic Tutorial (Starting Out)
- Coming Soon: Microsoft Home Server
- Microsoft provides several "Visual Studio Express" tools for free download.
- I looked pretty hard and I couldn't find a single tool that did what I wanted.
- This tool is made to load resources from just about anywhere.




