webserv1.prg
- Code: Select all Expand view
- #include "FiveWin.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "FWH Class TWebServer example"
ACTIVATE WINDOW oWnd ICONIZED ;
ON INIT BuildServer()
return nil
function BuildServer()
local oWebServer := TWebServer():New()
oWebServer:lDebug = .T.
oWebServer:cLogFile = "weblog.txt"
oWebServer:Activate()
oWebServer:Explore() // launches your internet navigator
return nil
When you run it, your internet navigator will be automatically shown: