Fecha actual Vie May 17, 2024 8:05 pm

Todos los horarios son UTC + 1 hora [ DST ]




Nuevo tema Responder al tema  [ 5 mensajes ] 
Autor Mensaje
NotaPublicado: Sab Oct 06, 2007 9:20 pm 

Registrado: Dom Mar 18, 2007 5:38 pm
Mensajes: 27
Is there any way to create exe file without using IDE (Ctrl+F9)?

_________________
Regards
D.Roly


Arriba
 Perfil  
Responder citando  
NotaPublicado: Jue Oct 11, 2007 9:25 pm 
Avatar de Usuario

Registrado: Dom Oct 09, 2005 11:26 am
Mensajes: 362
Ubicación: Salamanca - España
0-100 escribió:
Is there any way to create exe file without using IDE (Ctrl+F9)?


En projets hay ejemplos.

_________________
Un saludo.
Jesús P. Melgar Velasco


Arriba
 Perfil  
Responder citando  
 Asunto:
NotaPublicado: Vie Oct 12, 2007 12:39 pm 

Registrado: Dom Mar 18, 2007 5:38 pm
Mensajes: 27
Sorry, wrong question. Let me explain.
I am using C3-IDE to create Form.
I am using external editor to write code.
Now I have Example.c3p and Example.prg.
To create Example.exe I have to run C3-IDE, then Ctrl+F9 (building project) and close C3-IDE.
Can I create exe (build project) in command line (like: C3 Example /build ) or batch file or ...
There is no example for that in Projects.

_________________
Regards
D.Roly


Arriba
 Perfil  
Responder citando  
NotaPublicado: Vie Oct 12, 2007 7:43 pm 

Registrado: Mié Nov 30, 2005 11:34 pm
Mensajes: 8
You can compile files written with your favorite text editor, in the usual compile-link schema i.e:

c3 MyProgram.prg

That wil generate MyProgram.obj

Then you will need to link that .obj and startup.obj (in lib32 subfolder) with the libraries with tlink

tlink -L..\Lib32 -Tpe -aa -V4.0 -c -x ..\Lib32\StartUp.obj Test1.obj
cc32.lib Oops32.lib Extend32.lib
DbfNtx32.lib Gui32.lib
WinApi32.lib



That will generate

MyProgram.Exe

When you design an app in the ide it generates some code for you
namely a main function that declares some global objects instance
ie Application and Printer from TApplication and TPrinter
It also generates the code that derives your form from TForm
You can view the generated code for a form makink right click on the
form and choosing view source however it is read only you can not change it and you can not save it to another source file to compile it "manually" so you can not use the IDE as a "Screen Designer", however I think version 2 lets you copy and paste to a diferent file but i'm not shure.
If you open an explorer in your project folder and hit compile in the IDE you will see (if your machine is slow enough) that the ide generates some .prg files contaninig the form creation code, compiles and liks it to create the exe and then erases the generated files.
there is no option to avoid these files deletions.


Arriba
 Perfil  
Responder citando  
 Asunto:
NotaPublicado: Lun Oct 15, 2007 9:59 pm 

Registrado: Dom Mar 18, 2007 5:38 pm
Mensajes: 27
Thanks sanotto,
it was helpful :)

_________________
Regards
D.Roly


Arriba
 Perfil  
Responder citando  
Mostrar mensajes previos:  Ordenar por  
Nuevo tema Responder al tema  [ 5 mensajes ] 

Todos los horarios son UTC + 1 hora [ DST ]


No puede abrir nuevos temas en este Foro
No puede responder a temas en este Foro
No puede editar sus mensajes en este Foro
No puede borrar sus mensajes en este Foro
No puede enviar adjuntos en este Foro

Buscar:
Saltar a: