Search code examples
c++manifestembedded-resourcec++builder-2006

Cannot compile resource for application manifest in C++ Builder 2006


I am trying to add the application manifest to a program built with C++Builder 2006, by following this article.

(The manifest is to obtain admin rights for my program, which contains "setup" in his name and so it triggers the “This program may not have installed correctly” warning).

I have the MyApp_Setup.exe.manifest in the project folder, along with the MyApp_Setup1.rc file, which is present in the project.

When i try to build, i get:

[RC Fatal Error] MyApp_Setup1.rc(1): File creation failed

What i'm doing wrong, or what should I do?

question edited 'cause i messed up the filenames and the output error didn't matched


Solution

  • Found the problem.

    In the project options I always set an "_obj" output folder, but the resource compiler WANTS an existing "debug_build" folder to write the .res file. It don't create the directory, hence the error in the file creation. If i remove the "Obj" option, or once you have the "Debug_Build" folder present, everything compiles.