Crear project type console

Started by Pedro Marquez, August 22, 2014, 05:13:18 PM

Previous topic - Next topic

Pedro Marquez

It is not possible from firefly 3
You can create any option or code,

It is possible example.

José Roca

I never have bothered. When I want a console program, I use the console compiler.

Pedro Marquez

It is to use the functions that I have in firefly

Paul Squires

FireFly 3 is designed to use PowerBASIC for Windows compiler, not the Console compiler. FireFly 2 had the option to create console programs using the Windows compiler but it was more of a hack than allowing the true use of the official PB Console compiler.
Paul Squires
PlanetSquires Software

Elias Montoya

Pedro, I forgot to tell you. I found the solution to the problem you posted almost a year ago and forgot to tell you. The "hanging" is by design. I dont remember very well but one of the functions you were using will stop when there is no buffer to read or write. Read the MSDN library about readconsole.

About this thread, i don't understand very well when you want. Do you want to create a project of type 'console app'?
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

Pedro Marquez


I want to create a project of console
and use my personal functions written in fyrefli

David Kenny

Pedro,

If you have the console compiler, you can still use your personal functions in your console app.  You only need to move them into a .inc file.

Pedro Marquez

is possible program in firefly create an invisible program
or not create Form or not visualize

Elias Montoya


You can use the WINMAIN special module to do all you want and then
return TRUE to end the application without displaying any form.

Function FF_WINMAIN( ByVal hInstance     As Dword, _
                     ByVal hPrevInstance As Dword, _
                     ByVal lpCmdLine     As Asciiz Ptr, _
                     ByVal iCmdShow      As Long ) As Long


   ' If this function returns TRUE (non-zero) then the actual WinMain will exit
   ' thus ending the program. You can do program initialization in this function.

   Function = %FALSE    'return %TRUE if you want the program to end.

End Function
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

Pedro Marquez

thanks, did not know the module

as I can control with code WS_VISIBLE on off


Elias Montoya

 Hello Pedro, hmm, I don't understand, can you post in spanish as well?  :-[
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

David Kenny

I believe he is just saying that he didn't know you could make the startup form not visible by deselecting the WS_Visible window style.  He is OK with it being created as long as the form is never displayed.

Pedro Marquez

Quote from: David Kenny on August 25, 2014, 08:18:38 AM
I believe he is just saying that he didn't know you could make the startup form not visible by deselecting the WS_Visible window style.  He is OK with it being created as long as the form is never displayed.

Si, es eso. dejar el form no visible pero hacerlo por codigo.

Lo mas importante es que ahora desde el menu desmarque WS_Visible y lo he vuelto a marcar y no hay manera de que sea visible el programa.


Pedro Marquez

Este foro es penoso, se nota que firefly esta camino de entrar en la liga de abandonware.  :D

Paul Squires

Este foro es muy útil y ayuda a mucha gente.
Paul Squires
PlanetSquires Software