EOAsus
EOAsus

Reputation: 49

VS 2022 c++ app - Is it possible to make modifications to an .rc file at Build time?

I have a VS 2022 c++ project with a resource file. I'd like to be able to modify the .rc when the project is built, preferably with command line parameters. I'm not sure if this is possible and if so, how to go about it.

Upvotes: 0

Views: 104

Answers (1)

user21165999
user21165999

Reputation: 31

  1. Create an exe to modify the rc file as per your requirements.
  2. Configure Pre-Build event to call the exe. Use macros to specify the input files.

refer : https://learn.microsoft.com/en-us/cpp/build/specifying-build-events?view=msvc-170

Upvotes: 3

Related Questions