Icone no executável

Post Reply
lsmarco
Posts: 13
Joined: Fri Jan 08, 2010 10:51 am

Icone no executável

Post by lsmarco »

Gostaria de saber como colocar um icone no executavel.

Obrigado.
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Icone no executável

Post by anserkk »

In your .RC file

Code: Select all

1 ICON DISCARDABLE "Images/MyAppIcon.ico"
In your PRG you don't have to define anything extra to define Application ICON.

In your PRG

Code: Select all

DEFINE WINDOW oWnd TITLE "My Test App" 

@10,10 say "Test"

ACTIVATE WINDOW oWnd
Regards
Anser
lsmarco
Posts: 13
Joined: Fri Jan 08, 2010 10:51 am

Re: Icone no executável

Post by lsmarco »

Eu utilizo o Pelles C, mas não encontrei nenhuma opção para definir o Icone no executável.
Tem alguma linha de comando no programa? tentei a que foi mencionada, mas não deu certo.

Obrigado.
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Icone no executável

Post by anserkk »

Eu utilizo o Pelles C, mas não encontrei nenhuma opção para definir o Icone no executável.
Just add the the line to your .RC file using any text editor

Code: Select all

1 ICON DISCARDABLE "Images/MyAppIcon.ico"
Tem alguma linha de comando no programa? tentei a que foi mencionada, mas não deu certo.
How did you test your exe ? On the emulator or on the device ?

You may have to close the emulator and restart the emulator, to reflect the change in the app icon. I suggest you to reboot/refresh the device too to see the changes.

Regards
Anser
lsmarco
Posts: 13
Joined: Fri Jan 08, 2010 10:51 am

Re: Icone no executável

Post by lsmarco »

Ok. Resolvido. Obrigado!
Post Reply