Icono en ejecutable

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
JALMAG
Posts: 265
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Icono en ejecutable

Post by JALMAG »

Hola amigos, estoy casi acabando una aplicación para generar la facturacion mediante CSB1980 para llevar a los bancos en un disquete. Ahora bien veo que en HMG ya estan los ejecutables con un icono standar (el de windows), pero no consigo colocar un icono a mi ejecutable sin que esté en el rc. Si pongo MAIN ICON ico.ico me da error en la compilacion. Nota, esto trabajando con MINIGUI Extended.
¿Alguna sugerencia?
Gracias


English translate
Hello friends, finishing an application to generate the billing by means of CSB1980 to take to the banks in a diskette am almost. Now then I see that in HMG they are already the executable ones with an icon standar (that of windows), but I am not able to place an icon to my executable one without it is in the rc. If I put MAIN ICON ico.ico he/she gives me error in the compilation. He/she notices, this working with MINIGUI Extends.
Some suggestion?
Thank you
User avatar
mustafa
Posts: 1177
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Icono en ejecutable

Post by mustafa »

Hola amigo JALMAG
Mira de poner en Windows primero MAIN
ejemplo:
DEFINE WINDOW Win_1A ;
AT 0,0 ;
WIDTH 800 ;
HEIGHT 600 ;
TITLE ' ' ;
ICON "Logo" ;
MAIN NOSIZE NOMAXIMIZE

ICON "Logo" seria igual a= Logo ICON XXXX.ico
en fichero RC que tiene que ser igual que tu aplicacion
principal, es decir si el Primer PRG es: ejemplo MAIN.prg
el fichero RC tiene que ser MAIN.RC
y dentro pones Logo ICON XXXX.ico
XXXX.ico seria el nombre de tu icono.
Saludos
*----------------------------------*
Hello friend JALMAG
Look to put into Windows first MAIN
example:
DEFINE WINDOW Win_1;
AT 0,0;
WIDTH 800;
HEIGHT 600;
TITLE '';
ICON "Logo";
MAIN NOSIZE NOMAXIMIZE

ICON "Logo" would equal XXXX.ico = logo
in RC file that has to be the same as your application
main, ie if the Prime PRG is: example Main.prg
RC file must be MAIN.RC
and put inside logo XXXX.ico
XXXX.ico would be the name of your icon.
Greetings

Mustafa :lol:
JALMAG
Posts: 265
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: Icono en ejecutable

Post by JALMAG »

mustafa wrote:Hola amigo JALMAG
Mira de poner en Windows primero MAIN
ejemplo:
DEFINE WINDOW Win_1A ;
AT 0,0 ;
WIDTH 800 ;
HEIGHT 600 ;
TITLE ' ' ;
ICON "Logo" ;
MAIN NOSIZE NOMAXIMIZE

ICON "Logo" seria igual a= Logo ICON XXXX.ico
en fichero RC que tiene que ser igual que tu aplicacion
principal, es decir si el Primer PRG es: ejemplo MAIN.prg
el fichero RC tiene que ser MAIN.RC
y dentro pones Logo ICON XXXX.ico
XXXX.ico seria el nombre de tu icono.
Saludos
*----------------------------------*
Hello friend JALMAG
Look to put into Windows first MAIN
example:
DEFINE WINDOW Win_1;
AT 0,0;
WIDTH 800;
HEIGHT 600;
TITLE '';
ICON "Logo";
MAIN NOSIZE NOMAXIMIZE

ICON "Logo" would equal XXXX.ico = logo
in RC file that has to be the same as your application
main, ie if the Prime PRG is: example Main.prg
RC file must be MAIN.RC
and put inside logo XXXX.ico
XXXX.ico would be the name of your icon.
Greetings

Mustafa :lol:

Hola Mustfá, me da este error:
Error E0030 Syntax error "syntax error at 'WINDOW'"
) Error E0030 Syntax error "syntax error at '.'" es decir no acepta en la función de la ventana principal MAIN el ICON. Ten en cuenta que trabajo este programa con MINIGUI extended 1.7, igual tiene eso algo que ver.

PD Acabo de quitarlo del PRG y lo he dejado solo en el RC y ¡Funciona!!!!
Muchas gracias hermoso mio.
User avatar
mustafa
Posts: 1177
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Icono en ejecutable

Post by mustafa »

Hola JALMAG
mira este ejemplo que te pondo ICON.ZIP
no te puede dar error
Mustafa
Attachments
Icon.zip
(696.84 KiB) Downloaded 358 times
JALMAG
Posts: 265
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: Icono en ejecutable

Post by JALMAG »

mustafa wrote:Hola JALMAG
mira este ejemplo que te pondo ICON.ZIP
no te puede dar error
Mustafa
Muchas gracias guapeton, pero anoche repasando tu hilo, vi que no haia creado el archivo RC, una vez está no hay problema.

Reitero...GRAACIAS.
Post Reply