Files
harbour-core/harbour-RC1/contrib/examples/hscript
Viktor Szakats 778048f358 2008-06-20 14:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/examples/hscript/bld_b32.bat
     ! Fixed to have hbzlib.lib
       [RC1]

   * contrib/hbtip/common.mak
     ! Added missing sendmail.prg
       [RC1]

   * contrib/hbtip/tests/base64.prg
   * contrib/hbtip/tests/dbtohtml.prg
   * contrib/hbtip/tests/httpadv.prg
   * contrib/hbtip/tests/tipmail.prg
   * contrib/hbtip/tests/tipmmail.prg
   * contrib/hbtip/tests/tiptest.prg
     ! All tip tests fixed and tested to compile/link
       with Harbour.
     * Changed to not require hbw32.lib.
       [RC1]

   + contrib/hbtip/tests/test.dbf
     + Added for tests.
       [RC1]

   * source/rtl/gtclip.c
     ! hb_gt_w32_setClipboard() fix to CF_UNICODETEXT 
       EOS char setting.
       [RC1]

   * source/rtl/gtwvt/gtwvt.c
     + Now showing the application's executable name 
       in the window title on startup, instead of "Harbour WVT".
     * Window class name handling and control flow cleaned.
       [RC1]

   * tests/rto_get.prg
   * source/rtl/tget.prg
     ! Fixed TGet():assign() to pad character values 
       to the original length with the original content. 
       This also clears some existing differences in rto_get.prg.
     + Added regression test specifically for this.
       [RC1]

   * source/rtl/gtclip.c
     ! Added three LPWSTR casts to pacify warnings.

   * source/rtl/gtclip.c
     ! Fixed get/set clipboard when UNICODE is #defined.
       (WinCE mostly).
     ! Fixed get/set clipboard when format is CF_UNICODETEXT.
       (untested, please someone review me)
     ! Fixed get clipboard when CF_TEXT/CF_OEMTEXT format 
       is used, so that an additionaly zero byte won't be 
       appended anymore to the returned string.
       [RC1]

   * source/rtl/gtwvt/gtwvt.c
     * "HARBOUR_WVT" -> "Harbour WVT". This text is visible, 
       so it's better to make it "desktop friendlier"".
       [RC1]

   * contrib/hbmzip/hbmzip.ch
   * contrib/hbmzip/hbmzip.c
     + Added error codes to hbmzip.ch
     + Interface code changed to use manifest constants 
       instead of literals in a few places.
       [RC1]
2008-06-20 12:51:31 +00:00
..
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00
2008-06-04 05:13:20 +00:00

WARNING
-------

This document has serious bugs related to English Language.
I take no responsabilities for any misinformation in any form.
<GG>


HarbourScript Alfa Edition
--------------------------

Inside this zip file you will find HarbourScript package. This
should be unzipped to TESTS\WORKING\HSCRIPT directory in order
to work w/o any changes.

To make the HarbourScript Translator, hscript.exe, use MAKEHS.BAT.
If you are going to test offline, there's no need to make it,
it will be done automatically for you (Batch Power<g>). To test it,
you'll have the following options:


Testing HarbourScript using MS-Personal Web Server
--------------------------------------------------

(and maybe IIS 3.0+ too!)

1. Copy hscript.exe and harbour.exe to your cgi-bin directory
(or any other with Scripting allowed)

2. Copy all the scripts that you want to the same directory

3. You can now test Harbour Script using
http://localhost/cgi-bin/hscript?script=<script>.hs

Note: The hscript.exe program still locks the server sometimes.
This is due to external compilation of the resulting code. As
soon as we start to use macro substitution instead, this will
become more stable.


Testing HarbourScript without a Web Server
------------------------------------------

1. Make the sample scripts with MAKEHTM.

2. Browse the resulting .htm files as reported on screen.


How do this thing work?
-----------------------

Well, the HS (HarbourScript) tecnology is based on the ASP
(Active Server Pages) concept and someway in new Oracle 8i's
too.

A .hs page is like any normal HTML page with Special Tags and
Embedded Code. Those tags are: <% (Start Scripting) and %>
(End Scripting). Once you run this script, the HS translator
translates the Embedded Code into true Harbour Code and executes
it. In other words, you write your PRGs INSIDE your web pages.
This concept is called active content.


Known bugs
----------

- Web Server hanging some times (see above);


Open questions
--------------

Things not working due to lack of knowledge (if you know how
to do any of this things, leave a message on Harbour List with
subject HS Open questions, thanks! ;) ):

- How to associate .hs with hscript.exe safely in PWS and IIS.
I associated it using the Registry Key HKEY_LOCAL_MACHINE\System\>
CurrentControlSet\Services\W3SVC\Parameters\Script Map but
whenever I call the script I get a Server Error 500 without any
further explanation.


Felipe G. Coury
fcoury@flexsys-ci.com