CGI EXE

CGI EXE

Postby MarcoBoschi » Thu Jan 10, 2013 1: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: Select all  Expand view

#include "Simpleio.ch"

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

RETURN NIL
 
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CGI EXE

Postby Antonio Linares » Thu Jan 10, 2013 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CGI EXE

Postby FiveWiDi » Thu Jan 10, 2013 6: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 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1189
Joined: Mon Oct 10, 2005 2:38 pm

Re: CGI EXE

Postby Antonio Linares » Thu Jan 10, 2013 7:23 pm

Carlos,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CGI EXE

Postby FiveWiDi » Thu Jan 10, 2013 9: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 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1189
Joined: Mon Oct 10, 2005 2:38 pm

Re: CGI EXE

Postby MarcoBoschi » Fri Jan 11, 2013 8: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
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CGI EXE

Postby Antonio Linares » Fri Jan 11, 2013 1:07 pm

Marco,

You can use this function:

Code: Select all  Expand view

#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CGI EXE

Postby MarcoBoschi » Sat Jan 12, 2013 4:55 pm

Many Thanks
Antonio
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests