how add icon to exe?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how add icon to exe?

joaquim
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?
Reply | Threaded
Open this post in threaded view
|

Re: how add icon to exe?

Ángel González
On 27/08/13 20:46, joaquim wrote:

> 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?

The rc file should be "compiled" with windres.exe, not gcc.

I suspect there are better forums than this for your questions. This
list usually
deals with more technical questions.


Reply | Threaded
Open this post in threaded view
|

Re: how add icon to exe?

joaquim
Ángel González wrote
On 27/08/13 20:46, joaquim wrote:
> 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?

The rc file should be "compiled" with windres.exe, not gcc.

I suspect there are better forums than this for your questions. This
list usually
deals with more technical questions.
sorry you have right. my mistake.
but isn't that the problem, so i must ask: can i join the res file i added with, only, objects files or can i use source files too?
(in these sample i don't create the objects files, i just compile them with res file. is the problem?)
(sorry but i don't know any forum for these questions:()