It is currently Fri Sep 10, 2010 10:34 am




Post new topic Reply to topic  [ 5 posts ] 
Icono en ejecutable 
Author Message

Joined: Sun Jan 10, 2010 7:05 pm
Posts: 97
Post Icono en ejecutable
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


Tue Mar 09, 2010 9:31 pm
Profile
User avatar

Joined: Fri Mar 20, 2009 11:38 am
Posts: 227
Location: Alicante - Spain
Post Re: Icono en ejecutable
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:


Tue Mar 09, 2010 11:34 pm
Profile

Joined: Sun Jan 10, 2010 7:05 pm
Posts: 97
Post Re: Icono en ejecutable
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.


Sat Mar 13, 2010 8:51 pm
Profile
User avatar

Joined: Fri Mar 20, 2009 11:38 am
Posts: 227
Location: Alicante - Spain
Post Re: Icono en ejecutable
Hola JALMAG
mira este ejemplo que te pondo ICON.ZIP
no te puede dar error
Mustafa


Attachments:
Icon.zip [696.84 KiB]
Downloaded 16 times
Sun Mar 14, 2010 11:26 am
Profile

Joined: Sun Jan 10, 2010 7:05 pm
Posts: 97
Post Re: Icono en ejecutable
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.


Sun Mar 14, 2010 11:36 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forum/DivisionCore.