This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how add icon to exe?


i'm trying add an icon to exe without sucess:(
heres my files names strings:

        strCompilerName = App_Path & "\MinGW32\bin\g++.exe"
        strEXEFileName = """" & App_Path & "\test" & """"
        strCPPFonteName = """" & App_Path & "\test.cpp" & """"
        strMainIcon = """" & App_Path & "\MainIcon.res" & """"
        strRC = """" & App_Path & "\MainIcon.rc" & """"
        strResCompilerName = """" & App_Path & "\MinGW32\bin\windres.exe" &
""""

(App_Path  is the program folder)
- heres what i put inside of rc file:

id ICON "C:\Users\Joaquim\Documents\Visual Studio 2010\Projects\Visual
Cambalinho\Visual Cambalinho\bin\Debug\Diamante.ico"

- heres how i compile the rc file:

GCC strRC & "-O coof -o " & strMainIcon

- heres how i compile to exe:

GCC "-o " & strEXEFileName & " " & strCPPFonteName & strMainIcon & "
-static"

but i think the rc file isn't compiled:(
anyone can advice me?



--
View this message in context: http://gcc.1065356.n5.nabble.com/how-add-icon-to-exe-tp963657.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]