I need to run ResGen before building a project.
In project Properties dialog box, I set up the ResGen, but I go the error Error 524 The command "ResGen /compile tclscript.txt" exited with code 9009..
What's wrong? How can I run ResGen in VS1010?

To see the full error, look at the build output window. It'll probably say:
ResGen is not in the path environment variable, so you can either put it in or just reference ResGen with an absolute reference:
On my system it's this, however, you may have to search for it on your system.