1

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?

enter image description here

prosseek
  • 182,215
  • 215
  • 566
  • 871

1 Answers1

1

To see the full error, look at the build output window. It'll probably say:

'resgen.exe' is not recognized as an internal or external command operable program or batch file.

ResGen is not in the path environment variable, so you can either put it in or just reference ResGen with an absolute reference:

"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\resgen.exe"

On my system it's this, however, you may have to search for it on your system.

krisdyson
  • 3,217
  • 7
  • 43
  • 86
  • 2
    This solution does not work on different computers, sometime the resgen is in program files, sometime in program files x86. furthermore different computers accross our team have different version of SDK installed. – Tomas Kubes Oct 07 '14 at 08:31