FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CGI EXE
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

CGI EXE

Posted: Thu Jan 10, 2013 01:50 PM
Hi,
I have to compile this little program CGI using
#include "fivewin.ch"

Is it possible to obtain the same goal?
Hello World

in the browser


Many thanks
marco


Code (fw): Select all Collapse
#include "Simpleio.ch"

FUNCTION MAIN()
  ?? [Content-type: text/html]
  ?
  ? [<HTML>]
  ? [<BODY>]
  ? [<HEAD>]
  ? [ Hello World ]
  ? [</HEAD>]
  ? [</BODY>]
  ? [</HTML>]

RETURN NIL
Marco Boschi
info@marcoboschi.it
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CGI EXE

Posted: Thu Jan 10, 2013 03:30 PM
Marco,

That is quite similar to what FiveWeb does:

http://code.google.com/p/fiveweb/

Full source code provided :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM

Re: CGI EXE

Posted: Thu Jan 10, 2013 06:28 PM
Antonio Linares wrote:Marco,

That is quite similar to what FiveWeb does:

http://code.google.com/p/fiveweb/

Full source code provided :-)


El último release es del 04/12/12, y creo que hubo modificaciones posteriores. Cierto?

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CGI EXE

Posted: Thu Jan 10, 2013 07:23 PM

Carlos,

Puedes descargar lo más reciente directamente desde el repositorio usando TortoiseSVN

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM

Re: CGI EXE

Posted: Thu Jan 10, 2013 09:08 PM
Antonio Linares wrote:Carlos,

Puedes descargar lo más reciente directamente desde el repositorio usando TortoiseSVN

Gracias, lo tendré en cuenta.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: CGI EXE

Posted: Fri Jan 11, 2013 08:54 AM

Antonio I have to do an experiment (a little test)
At the moment I want to understand if there is a function Fivewin to replace the question mark.
Bye

Marco Boschi
info@marcoboschi.it
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CGI EXE

Posted: Fri Jan 11, 2013 01:07 PM
Marco,

You can use this function:

Code (fw): Select all Collapse
#pragma BEGINDUMP

#include <hbapi.h>

HB_FUNC( CONOUT )
{
   printf( "%s\n", ( char * ) hb_parc( 1 ) );
}   

#pragma ENDDUMP


and this command to use the ?:

#xcommand ? <x> => ConOut( <x> )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: CGI EXE

Posted: Sat Jan 12, 2013 04:55 PM

Many Thanks
Antonio

Marco Boschi
info@marcoboschi.it

Continue the discussion