Listing 1: Visual C++ WinCGI code segment

void WinCGI_application()
{ 
  // Our WinCGI application code goes here.

  // Send the header first
  cWinCGI.Send(CString("Content-type: text/html"));
  cWinCGI.Send(CString(""));

  // Send our message back to the browser.
  cWinCGI.Send(
    CString("<HTML><HEAD>Hello World from Visual C++!</HEAD></HTML>"));
}

//End of File