简体   繁体   中英

Adding the resources.rc file info the project

I want to add information about my App by adding resources.rc file info my project.

I used this answer: https://stackoverflow.com/a/3323786/6788868

But after that I'm getting

"When writing output to: invalid argument"

in resources.rc file.

I think that I might be adding this rc file in wrong way: right click on project -> add new... -> General -> Empty file -> resources.rc

All I did was creating this rc file and version.h file as a header file, and pasting the content from answer above.

This error exists after

#include "version.h"

if your using Qt creator why not add this to your projects .pro file like the second answer on that post said.

VERSION = 0.4.0.1
QMAKE_TARGET_COMPANY = company
QMAKE_TARGET_PRODUCT = product
QMAKE_TARGET_DESCRIPTION = description
QMAKE_TARGET_COPYRIGHT = copyright

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM