[英]How to generate .res file containing icons runtime
我需要使res運行時,它需要包含我的應用程序列表中的一些圖標。 res文件必須放置在項目的“資源文件”字段中。 因此它需要與win32兼容。
我很努力地嘗試:
您對我如何實現這一目標有任何想法嗎?
如果我嘗試編譯.rc文件,則會得到以下輸出:
Microsoft (R) Windows (R) Resource Compiler, Version 5.1.2264.1 - Build 2264
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.
Using codepage 1252 as default
Creating rc - ResourceFile.res
RC: RCPP -CP 1252 -f C:\\Users\\itis\\Desktop\\RCa18040 -g C:\\Users\\itis\\Desktop\\RDa18040 -DRC_INVOKED -D_WIN32 -pc\\:/ -E -IC:\\Users\\itis\\Desktop\\ -I .
C:\\Users\\itis\\Desktop\\_mingw.h(51) : error RC2188: #error : ERROR: You must use a GNU Compiler.
C:\\Users\\itis\\Desktop\\_mingw.h(55) : error RC2188: #error : ERROR: You must use a GNU Compiler version >= 3.4.5.
C:\\Users\\itis\\Desktop\\afxres.h(34) : fatal error RC1015: cannot open include file 'windows.h'.
Premere un tasto per continuare . . .
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.