Commit Graph

14401 Commits

Author SHA1 Message Date
Viktor Szakats
79e3859e34 2010-05-27 19:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/hbolesrv.c
    ! Fixed for msvcarm.

  * contrib/hbwin/hbwin.ch
  * contrib/hbwin/win_shell.c
  + contrib/hbwin/tests/testcopy.prg
    + Added:
      WIN_SHFileOperation( [<hWnd>], [<nFunction>], [<cFrom>|<aFrom>], [<cTo>|<aTo>],
                           [<nFlags>], [<@lAnyOperationAborted>],
                           [<aNameMappings>], [<cProgressTitle>] ) -> <nResult>
    ; Przemek, if you have some time pls review s_StringList()
      function which I adapted from similar function in win_dlg.c,
      but it might not be perfect. '<s1><\0><s2><\0><\0>' format
      is required by this SHFileOperation() Windows function.
2010-05-27 17:27:23 +00:00
Przemyslaw Czerpak
5867684987 2010-05-27 19:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbolesrv.c
    % improved the performance and reduced memory usage by using hash
      array with strict assign order for message names to number translation
      in OLE objects accepting any message names
2010-05-27 17:08:44 +00:00
Przemyslaw Czerpak
ca198f67d0 2010-05-27 16:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/Makefile
  + harbour/contrib/xhb/xhbhasha.c
    + added xHarbour Hash with Associative Array compatibility functions:
         HAAGETKEYAT( <hValue>, <nPos> ) -> <value>
         HAAGETVALUEAT( <hValue>, <nPos> ) -> <value>
         HAASETVALUEAT( <hValue>, <nPos>, <value> ) -> NIL
         HAADELAT( <hValue>, <nPos> ) -> NIL
         HAAGETPOS( <hValue>, <xKey> ) -> <nPos>
         HAAGETREALPOS( <hValue>, <nPos> ) -> <nRealPos>
         HGETVAAPOS( <hValue> ) -> <aOrder>
         HSETAACOMPATIBILITY( <hValue>, <lAACompat> ) -> <lDone>
         HGETAACOMPATIBILITY( <hValue> ) -> <lAACompat>
      These functions were added only for compatibility with existing
      xHarbour code. Harbour does not emulate associative arrays by
      special index but it uses real natural order for them. It means
      that associative array indexes are equal to regular hash indexes
      so we do not need any translation between them and Harbour users
      can use regular hash array functions for associative array indexes,
      i.e. instead of using HAAGETKEYAT() they can use HB_HKEYAT().
2010-05-27 14:27:25 +00:00
Viktor Szakats
dc66765645 2010-05-27 15:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/xhbfunc.c
    + Added XHB_NETNAME(), XHB_MEMOWRIT()

  * contrib/xhb/hbcompat.ch
    ! Fixed MEMOWRIT() translation. Someone pls test it with
      real xhb.

  * contrib/xhb/hbcompat.ch
  * contrib/xhb/xhb.ch
    ! Moved xhb_*() function dependent translations to xhb.ch.
      (since the promise is that hbcompat.ch translations don't
      need xhb lib)
2010-05-27 13:22:44 +00:00
Viktor Szakats
d0dd7543b0 2010-05-27 14:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/hbcompat.ch
    * Grouped together all translations which cannot be
      replaced using wrapper technique.

  * contrib/xhb/xhbgt.c
  * contrib/xhb/xhbfunc.c
    ! Deleted two wrappers which cannot be wrappers.
      (dirty extensions)
2010-05-27 12:55:18 +00:00
Viktor Szakats
4c69eac13f 2010-05-27 14:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/Makefile
   - contrib/xhb/hbcompat.prg
   + contrib/xhb/xhbfunp.prg
     * Renamed.

   * contrib/xhb/Makefile
   * contrib/xhb/xhbmt.prg
   + contrib/xhb/xhbmtc.c
   * contrib/xhb/xhbfunp.prg
     % Some .prg wrappers changed to .c ones.
     ! This also fixed some double implementation
       after previous commit.

   * contrib/xhb/xhbarr.c
   * contrib/xhb/xhbfunp.prg
     % Converted RASCAN wrapper to .c and moved to
       existing array wrapper source file.

   * contrib/xhb/Makefile
   * contrib/xhb/xhbfunc.c
   + contrib/xhb/xhbhash.c
     % Moved hash wrappers to separate file.
       (also synced with xhbfunp.prg content)
     - Deleted special macro to disable these wrappers.

   * contrib/xhb/Makefile
   * contrib/xhb/xhbfunc.c
   + contrib/xhb/xhbinet.c
     % Moved inet function wrappers to separate file.
       (also synced with xhbfunp.prg content)
     - Deleted special macro to disable these wrappers.

   * contrib/xhb/Makefile
   * contrib/xhb/xhbfunp.prg
   + contrib/xhb/xhbgt.c
   + contrib/xhb/xhbini.c
   + contrib/xhb/xhbproc.c
   + contrib/xhb/xhbregx.c
   + contrib/xhb/xhbmtc.c
   + contrib/xhb/xhbfs.c
   + contrib/xhb/xhbdate.c
   + contrib/xhb/xhbi18n.c
     % Rewritten wrappers in .c and moved them to
       separate files.

   ; Few other double definitions fixed after previous commit.
     Hopefully now it's optimal and modular, and the best wrappers
     were kept.
   ; Basically hbcompat.ch is now not of too much use, unless
     someone specifically want to avoid linking xhb.
2010-05-27 12:48:11 +00:00
Viktor Szakats
782834a322 2010-05-27 12:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/Makefile
  + contrib/xhb/hbcompat.prg
    + Added equivalent function wrappers for all hbcompat.ch
      translations where such was possible (everywhere besides
      "dirty" extensions of original Clipper functions)
    ; NOTE: This method, as is now, has some advantages:
            - doesn't require modification of app source code.
            - doesn't require knowledge about hbcompat.ch.
            and disadvantages:
            - is slightly slower
            - will pull unnecessary code parts into the executable
            If this change gets positive feedback, the two
            disadvantages can be easily mitigated by splitting
            hbcompat.prg into multiple .prg sources and replacing
            wrappers with .c code where possible.
    ; Pls review me.

  * contrib/xhb/hbcompat.ch
    ! Minor cleanup.

  * contrib/hbcomm/hbcomm.prg
    ! Fixed return value of OUTCHR(). Thank you Przemek for reviewing.
2010-05-27 10:59:44 +00:00
Pritpal Bedi
d291ccc0c8 2010-05-27 00:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth
  * contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth
  * contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth
  * contrib/hbqt/hbqscintilla/qth/QsciCommand.qth
  * contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth
  * contrib/hbqt/hbqscintilla/qth/QsciDocument.qth
  * contrib/hbqt/hbqscintilla/qth/QsciLexer.qth
  * contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth
  * contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth
  * contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth
  * contrib/hbqt/hbqscintilla/qth/QsciStyle.qth
  * contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth

  * contrib/hbqt/hbqscintilla/QSci*.cpp

  + contrib/hbqt/hbqscintilla/hbqt_local.h
    + Localized: hbqt_par_Qsci*()

  * contrib/hbqt/doc/en/class_qchar.txt
  * contrib/hbqt/doc/en/class_qthread.txt
  * contrib/hbqt/qtcore/QChar.cpp
  * contrib/hbqt/qtcore/QThread.cpp
  * contrib/hbqt/qtcore/TQChar.prg
  * contrib/hbqt/qtcore/TQThread.prg
  * contrib/hbqt/qth/QThread.qth
    ! Regenerated.

  * contrib/hbqt/hbqt.h
    - Removed: hbqt_par_Qsci*()
2010-05-27 07:51:42 +00:00
Przemyslaw Czerpak
70059b6050 2010-05-27 08:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/wvgsink.c
    ! updated WVG OLE code to use new hb_oleVariantUpdate() parameters
2010-05-27 06:11:40 +00:00
Pritpal Bedi
147a044203 2010-05-26 18:53 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
    + Tweaked to operate on local folder and definitions there.

  + contrib/hbqt/hbqscintilla
  + contrib/hbqt/hbqscintilla/doc
  + contrib/hbqt/hbqscintilla/doc/en
  + contrib/hbqt/hbqscintilla/qth

  + contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth
  + contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth
  + contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth
  + contrib/hbqt/hbqscintilla/qth/QsciCommand.qth
  + contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth
  + contrib/hbqt/hbqscintilla/qth/QsciDocument.qth
  + contrib/hbqt/hbqscintilla/qth/QsciLexer.qth
  + contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth
  + contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth
  + contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth
  + contrib/hbqt/hbqscintilla/qth/QsciStyle.qth
  + contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth

  + contrib/hbqt/hbqscintilla/doc/en/class_*.txt
    + Auto generated

  + contrib/hbqt/hbqscintilla/Qsci*.cpp
    + Auto generated.

  + contrib/hbqt/hbqscintilla/THBQsci*.prg
    + Auto generated.

  + contrib/hbqt/hbqscintilla/hbqt_garbage.h
    + Auto generated.

  + contrib/hbqt/hbqscintilla/hbqscintilla.ch
    + Constants for PRG code.

  + contrib/hbqt/hbqscintilla/hbqscintilla.hbp
    + To build hbqscintilla.a/lib

  + contrib/hbqt/hbqscintilla/hbqscintilla.qtp
    + .qth info file.

  + contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp
  + contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h

  + contrib/hbqt/hbqt.h
    + Added: constants hbqt_par_Qsci* 
      ; TODO make them local.

    + Initial upload of wrappers for QScintilla.
      To generate the sources auto you need to stay in hbqt/hbqscintilla
      and issue ../generator/hbqtgen.

      HB_WITH_QSCINTILLA and HB_WITH_QT need be properly defined.
      I am still finding where to host modified QScintilla, any tips ?
2010-05-27 02:17:08 +00:00
Viktor Szakats
03b6d1761a missed a 'not' from previous entry text 2010-05-26 22:18:25 +00:00
Viktor Szakats
2e28cc5df7 2010-05-27 00:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/examples/contribf.hbc
  * contrib/Makefile
  + contrib/hbcomm
  + contrib/hbcomm/Makefile
  + contrib/hbcomm/hbcomm.hbc
  + contrib/hbcomm/hbcomm.prg
  + contrib/hbcomm/hbcomm.hbp
  + contrib/hbcomm/tests
  + contrib/hbcomm/tests/hbmk.hbm
  + contrib/hbcomm/tests/test.prg
    + Added HBCOMM compatibility library. It's based on hbct
      COM functions. Not tested with real port. Also see one
      TOFIX and one INCOMPATIBILITY note inside. The latter
      belongs to INCHR() function which in original HBCOMM
      library will do HVM corruption by overwriting string
      content passed as 3rd parameter. In Harbour 3rd
      parameter needs to be passed by reference.
      Also added fully adapted test code from HARBOUR MINIGUI
      project. Interestingly this code was using the return
      value of INCHR() to get the returned buffer, which was
      in sync with included HBCOMM code. Anyway, hopefully
      this can be finalized based on report from real users.
    ; DISCLAIMER:
        EXPERIMENTAL CODE. USE AT YOUR OWN RISK. NO GUARANTEES.

  + contrib/hbfbird/hbfbird.hbp
  + contrib/hbsms/hbsms.hbp
    + Added early bird experimental .hbp files for contrib
      two projects.

  * utils/hbmk2/hbmk2.prg
    + Added support for ${hb_dirname} macro which returns the
      directory in which the script file is where the macro is
      used.
    ! Fixed so that '-build' option doesn't require a configured
      C compiler.
    + Extended hack for bcc autoconfiguration with 5.8 support,
      adding an extra system header directory to the include
      dir list if it exists. bcc 5.8 appears to be well installed,
      so this is probably not needed for most users.
    + Documented dir casing differences between bcc 5.5 and 5.82.
      This may be important for autoconfiguration hack to work with
      bcc under wine using native hbmk2 build. I'm not even sure
      such scenario is possible at all ;)
2010-05-26 22:17:06 +00:00
Przemyslaw Czerpak
67251071d1 2010-05-26 22:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/olecore.c
    * modified hb_oleVariantUpdate() parameters
    + added automatic conversion of HVM objects to OLE objects for
      for parameters passed by reference to Harbour OLE server methods.

  * harbour/contrib/hbwin/hbolesrv.c
    + added automatic conversion of HVM objects to OLE objects for
      memvars redirected to OLE instance variables.
    ! fixed typo
2010-05-26 20:55:13 +00:00
Viktor Szakats
e61c9f9c55 2010-05-26 17:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
    + Added support for 'psources=' and 'pflags=' directives in
      .hbc files. They serve the same purpose as cmdline '-pi='
      and '-pflag=' options; passing parameters to plugins.
    % Minor internal optimizations, also fixing some very rare
      and light potential problems with letting to add double
      parameters when passing them using different pathseps.
2010-05-26 15:07:12 +00:00
Viktor Szakats
3477164a0e 2010-05-26 16:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapifs.h
    + Added some more HB_EXPORT flags. Pls check me.

  * contrib/hbwin/hbolesrv.hbc
    + Added reference to hbwin.hbc, so that it can be used 
      standalone accompanied by -hbdynvm option to create 
      OLE servers easily: 'hbmk2 -hbdynvm hbolesrv.hbc ...'

  * contrib/hbwin/hbolesrv-watcom.def
    ! Fixed comments to watcom format.

  * utils/hbmk2/hbmk2.prg
    ! Fixed RTE when parsing certain rarer Windows file types 
      in sources= directive in .hbc files in *nix hbmk2 builds.
      (could only kick in when using hbmk2 under *nix to cross 
      compile for Windows). Thanks Przemek for the report.
    - Deleted doubly added support for .def file parsing in sources=
      directive.
2010-05-26 14:32:41 +00:00
Viktor Szakats
544c2be725 2010-05-26 12:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbolesrv-mingw.def
  * contrib/hbwin/hbolesrv.def
  * contrib/hbwin/hbolesrv-watcom.def
    ! Added SVN props.
2010-05-26 10:08:01 +00:00
Przemyslaw Czerpak
66b0a1b53f 2010-05-26 11:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbwinole.h
    ! fixed typo in added extern declarations

  * harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/hbolesrv.c
    + added support for automatic conversion of HVM objects returned by
      Harbour OLE server methods to OLE objects.
      Please test. I cannot make any tests now.
    ; TODO: if it works then update this code to create some more general
            version.
2010-05-26 09:20:00 +00:00
Viktor Szakats
c0614c33ad 2010-05-26 11:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwinole.h
    + Added missing 'extern' to HB_EXPORT declarations.
2010-05-26 09:10:59 +00:00
Viktor Szakats
55c19cb250 2010-05-26 10:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/mpkg_win_uni_extra_copy.bat
    + Added contrib .hbi and .def files to the binary package.

  * utils/hbmk2/hbmk2.prg
    ! Typo in comment.
2010-05-26 08:39:02 +00:00
Viktor Szakats
759446e3c5 2010-05-26 09:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/examples/plug_moc.prg
    * Minor cleanup.
2010-05-26 07:40:49 +00:00
Pritpal Bedi
e17fbe04f8 2010-05-25 21:42 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* utils/hbmk2/examples/plug_moc.prg
    ! Fixed to cover header file supplied with path like 
        -pe=somefolder/someheader.h.
2010-05-26 04:41:10 +00:00
Viktor Szakats
6c0605140a 2010-05-26 02:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/examples/plug_moc.prg
    ! Copy/paste typo in moc detection on some linux platforms.
2010-05-26 00:41:13 +00:00
Viktor Szakats
dca44d2c06 2010-05-26 02:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.sh
    ! Enabled missing postinst activities for 'clang' targets.
2010-05-26 00:04:44 +00:00
Viktor Szakats
06e8ad1f32 2010-05-26 01:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbolesrv.def
  * contrib/hbwin/hbolesrv-mgw.def
  * contrib/hbwin/hbolesrv-ow.def
    ! Added PRIVATE to DllRegisterServer and DllUnregisterServer.
      (to pacify msvc warning)

  * contrib/hbwin/hbolesrv.hbc
  - contrib/hbwin/hbolesrv-mgw.def
  + contrib/hbwin/hbolesrv-mingw.def
  - contrib/hbwin/hbolesrv-ow.def
  + contrib/hbwin/hbolesrv-watcom.def
    * Renamed to use well-known compiler IDs.
2010-05-25 23:55:13 +00:00
Viktor Szakats
25aa9855a5 2010-05-26 01:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
    ! Added HB_EXPORT to hb_memvarGet() and hb_memvarSetValue()
      used by new OLE server code in hbwin when created -shared
      OLE server .dlls.

  + contrib/hbwin/hbolesrv.hbc
    + Added .hbc file to help creating OLE servers.

  * contrib/hbwin/tests/olesrv1.hbp
  * contrib/hbwin/tests/olesrv2.hbp
  * contrib/hbwin/tests/olesrv3.hbp
    % Changed to use hbolesrv.hbc.
    - Deleted '-static' option to also allow to build -shared
      OLE servers. (I tested them OK)

  * contrib/hbwin/tests/olesrv2.prg
    + Tweak to allow case-insensitive access of OLE functions.

  * utils/hbmk2/hbmk2.prg
    + Added support for .def files in source= .hbc line.
2010-05-25 23:44:42 +00:00
Viktor Szakats
11ad9802c7 2010-05-26 00:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/tests/oletst2.prg
    ! Fixed little typo causing asyncronity with one server msg.
2010-05-25 22:37:11 +00:00
Viktor Szakats
38224e4dac 2010-05-26 00:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/tests/oletst1.hbp
  * contrib/hbwin/tests/olesrv1.hbp
  * contrib/hbwin/tests/oletst2.hbp
  * contrib/hbwin/tests/olesrv2.hbp
  * contrib/hbwin/tests/oletst3.hbp
  * contrib/hbwin/tests/olesrv3.hbp
    * Changed to reference .hbp files instead of libs.
    % Deleted redundant settings already supplied
      by .hbm files. (if the goal is to make them
      current dir independent, we can add a simple
      @hbmk.hbm reference to them)

  * contrib/hbwin/hbolesrv-mgw.def
  * contrib/hbwin/hbolesrv.def
  * contrib/hbwin/hbolesrv-ow.def
    + Added SVN ID as comments.
      (I hope watcom supports it, if not pls tell)
    ; TODO: We should somehow merge these into one .def,
            even if it requires some extra hbmk2 "magic".

  * contrib/hbwin/tests/oletst1.hbp
  * contrib/hbwin/tests/olesrv1.hbp
  * contrib/hbwin/tests/oletst2.hbp
  * contrib/hbwin/tests/olesrv2.hbp
  * contrib/hbwin/tests/oletst3.hbp
  * contrib/hbwin/tests/olesrv3.hbp
  * contrib/hbwin/hbolesrv-mgw.def
  * contrib/hbwin/hbolesrv.def
  * contrib/hbwin/hbolesrv-ow.def
    + Added SVN props.
2010-05-25 22:23:11 +00:00
Przemyslaw Czerpak
77ae9b90ec 2010-05-26 00:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/Makefile
  + harbour/contrib/hbwin/hbolesrv.c
    + added inproc OLE server implementation. It allows to create OLE/ACTIVEX
      COM server in Harbour. Such OLE server allows can be used by programs
      written in any languages supporting OLE automation (also in other
      Harbour applications)
      User ole server code should be linked as DLL which later can be
      register in MS-Windows by regsvr32.exe program, i.e.:
         regsvr32 myolesrv.dll
      The OLE server code should contain DLLMAIN() PRG function which
      is executed just after loading OLE inproc DLL server as server from
      other application and also by regsrv32.exe during registration and
      unregistration procedure. It has to initialize at least OLE server
      ID and name usinf WIN_OleServerInit().
    + added new PRG function which intitialize OLE server:
      WIN_OleServerInit( <cClassID>, <cServerName>, ;
                         [ <hAction> | <oAction> | <bAction> | <sAction> ], ;
                         [ <lHashClone> | <lAcceptAll> ] ) -> <lServerActive>
      <cClassID> is registered OLE server class GUID

      <cServerName> is OLE server class name

      <hAction> is optional parameter with hash array containing messages
      and instance variables used by OLE server. The keys in hash array
      are strings with message names and values are actions. Codeblock
      and symbol items means that given message is a method call and
      any other value means that it's variable.
      By default the same hash array is shared between all objects
      created by registered server. It's important when hash array
      contains values which are neither codeblock nor symbol items
      so they are not used as method but rather as instance variables
      because such instance variables are shared between OLE objects.
      Setting 4-th parameter <lHashClone> to .T. causes that each
      objects receives it's own copy of <hAction> item so instance
      variables inside hash array are also local to OLE object.
      Alternatively programmer can use <bAction> or <sAction> to create
      seprate copy of hash array for each object, i.e.:
         bAction := {|| hb_hClone( hValue ) }
      When hash array contains symbol item (@funcName()) then when it's
      executed by OLE object message it's possible to access the hash
      array bound with given OLE object using QSelf() function. It maybe
      useful if hash array contains instance variables and programmer
      wants to access them.
      Please remember that using hash array which was initialized to keep
      original assign order by HB_HKEEPORDER( <hAction>, .T. ) before
      adding its items you can define strict message numbers (DISPIDs), i.e.:
         hAction := {=>}
         HB_HKEEPORDER( hAction, .T. )
         hAction[ "OPEN" ]  := @myole_open()     // DISPID=1
         hAction[ "CLOSE" ] := @myole_close()    // DISPID=2
         hAction[ "SAVE" ]  := @myole_save()     // DISPID=3
         hAction[ "LOAD" ]  := @myole_load()     // DISPID=4
         hAction[ "PRINT" ] := @myole_print()    // DISPID=5
      (see example in olesrv2.prg)

      <oAction> is optional parameter with Harbour object which is used
      as base for all newly created OLE objects. All messages (method and
      instance variables) supported explicitly by <oAction> object (except
      ONERROR message redirecting) are inherited by OLE objects. Each
      newly created OLE object uses the same <oAction> object so its
      instance variables are shared between all of them. If programmer
      wants to create separate Harbour object for each OLE object then
      he should use <bAction> or <sAction>, i.e.:
            bAction := {|| myClass():new() }

      <bAction> is optional parameter with codeblock executed when new
      OLE object is created. It should return hash array or Harbour object
      which will be used as base for newly created OLE object.

      <sAction> is optional parameter with function symbol. This function
      is executed when new OLE object is created and should return hash
      array or Harbour object which is used as base for newly created
      OLE object.

      If the 3-rd parameter is <oAction>, <bAction> or <sAction> then
      it's possible to also set 4-th parameter <lAcceptAll> to .T. and
      in such case <xAction> parameter is used in different way. Newly
      created OLE object accepts any massage names invoking for each
      of them EVAL() message which is sent to <xAction> with OLE message
      name inserted as the 1-st item to OLE object parameters.
      It allows to create OLE server which will accept unknown messages
      redirecting them to some other code, i.e.:
         if netio_connect( cServer,,, cPasswd )
            WIN_OleServerInit( cClassID, cServerName, @netio_funcExec(), .T. )
         endif
      initialize OLE server which redirects all messages to default netio
      connection establish by netio_connect().

      If 3-rd parameter is not given then all HVM functions becomes
      OLE methods and HVM memvars (public and private variables) are
      OLE object instance variables so they are shared with all OLE
      objects created by this interface. It works just like xHarbour.com
      OLE server described at
      http://xharbour.com/index.asp?page=add_on_oleserver&show_sub=7&show_i=1

    ; TODO: add support for MT RPC servers. Current implementation cannot
            be safely used in MT programs creating OLE objects and executing
            their methods simultaneously in different threads without
            additional user code which will serialize these operations.
    ; TODO: replace message handler API in WIN_AxGetControl()/
            __AxRegisterHandler() which uses only fixed method IDs
            and do not support method names with above one so user
            can easy create activex controls which support message
            names. This modificaiton will force updating user and 3-rd
            party code but IMO should be done. Current interface is
            simply too much limited to keep it.
    ; Possible TODO: add support for user defined fixed message numbers
                     (DISPIDs) which are not continuous small numbers so
                     users cannot easy use hash arrays with strict order.
                     Is such functionality necessary? Can someone with
                     ActiveX experience say sth about it?
                     Above implementation has undocumented feature:
                     it supports hash arrays with keys using numbers only
                     which can be used like in __AxRegisterHandler() but
                     I haven't decided yet I should keep, extend or remove
                     such functionality.

    Please make real life test.
    I do not have any practice with MS-Windows and OLE and most of above
    code I wrote using only documentation so I'm very interesting in real
    test results and user opinions about it. If some important functionality
    is missing then please inform me about it.
    BTW There are some 3-rd party activex implementation for [x]Harbour, i.e.
    xharbour.com or FiveWin ones. Maybe someone familiar with them can create
    PRG compatibility layer for Harbour. I cannot do that myself because I
    do not know that products and their PRG API used in OLE/COM/ActiveX
    implementations but if someone can describe it then I can help in such
    implementation.

  + harbour/contrib/hbwin/hbolesrv.def
  + harbour/contrib/hbwin/hbolesrv-mgw.def
  + harbour/contrib/hbwin/hbolesrv-ow.def
    + added .DEF link files which are necessary to correctly export
      inproc OLE server DLL functions. It's possible that other compilers
      or even different versions of the same compilers may use different
      a little bit different .DEF files. I tested above with BCC5.5,
      MinGW 3.4.5 and OpenWatcom 1.8.

  + harbour/contrib/hbwin/test/olesrv1.prg
  + harbour/contrib/hbwin/test/olesrv1.hbp
  + harbour/contrib/hbwin/test/oletst1.prg
  + harbour/contrib/hbwin/test/oletst1.hbp
    + added example of NETIO-RPC OLE server code with Harbour (PRG) client.
      This server redirects all messages sent to its OLE objects to remote
      HBNETIO server as function calls. It understands the following
      messages:
         CONNECT()    - creates connection to the server, parameters like in
                        NETIO_CONNECT() and NETIO_GETCONNECTION() functions
         DISCONNECT() - closes current connection
         PROCEXISTS() - works like NETIO_PROCEXISTS()
         PROCEXEC()   - works like NETIO_PROCEXEC()
         PROCEXECW()  - works like NETIO_PROCEXECW()
         FUNCEXEC()   - works like NETIO_FUNCEXEC()
      All other messages are redirected directly to RPS server as function
      calls.
      CONNECT() message should be executed by client to create
      connection to the server. Each NETIO-RPC OLE object uses its own
      connection which should be initialized. If CONNECT() is executed
      more then once the current connection is closed.
      DISCONNECT() is executed automatically when OLE object is destroyed
      so it's not necessary to call it explicitly.
      Please use hbmk2 and olesrv1.hbp to compile OLE server. OLE inproc
      servers have to export some DLL entry functions which are defined
      in .def files which have to be passed to linker.
      Before client code can be tested the server has to be registered.
      The server can be registered in given MS-Windows system using
      regsvr32.exe command. To register the server use:
         regsvr32 olesrv1.dll
      and to unregister:
         regsvr32 /u olesrv1.dll

  + harbour/contrib/hbwin/test/olesrv2.prg
  + harbour/contrib/hbwin/test/olesrv2.hbp
  + harbour/contrib/hbwin/test/oletst2.prg
  + harbour/contrib/hbwin/test/oletst2.hbp
    + added very simple example of OLE server using hash array with
      strict item order (associative hash array) to define OLE objects
      with fixed message numbers (DISPIDs)
      Remember about registering the server by 'regsvr32 olesrv2.dll'

  + harbour/contrib/hbwin/test/olesrv3.prg
  + harbour/contrib/hbwin/test/olesrv3.hbp
  + harbour/contrib/hbwin/test/oletst3.prg
  + harbour/contrib/hbwin/test/oletst3.hbp
  + harbour/contrib/hbwin/test/oletst3.bas
    + added example of OLE server code with Harbour (PRG)
      and Visual Basic (BAS) clients.
      This server redirects all messages sent to its OLE objects to HVM
      functions and messages to HVM memver (public and private) variables
      This server should work as xHarbour.com OLE servers described at:
      http://xharbour.com/index.asp?page=add_on_oleserver&show_sub=7&show_i=1
      The server and clients code are nearly the same so users can easy
      compare them.
      Remember about registering the server by 'regsvr32 olesrv2.dll'
2010-05-25 22:04:04 +00:00
Viktor Szakats
97884956eb 2010-05-26 00:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    - Deleted one no more true restriction regarding HB_BUILD_PKG.
2010-05-25 22:01:18 +00:00
Viktor Szakats
1e378f3c54 2010-05-25 23:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ config/bsd/clang.mk
    + Base implementation of bsd/clang target.
      Based on patch by Tamas Tevesz with modifications:
        - deleted HB_DYN_COPT
        - replaced dynamic lib rules with bsd/gcc.mk.
        (both fully untested)

  * INSTALL
  * utils/hbmk2/hbmk2.prg
    + Added preliminary support for bsd/clang target. (untested)

  * contrib/hbide/idemisc.prg
    + Added hbide_pwd() function.
2010-05-25 21:41:14 +00:00
Viktor Szakats
924c97055e 2010-05-25 22:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbide/ideprojmanager.prg
    ! Fixed output directory issue without the need for an hbmk2 plugin.
      HBIDE was changing current dir when calling hbmk2, so the detected
      output filename needs to be rebased from that directory.

  * contrib/hbide/ideprojmanager.prg
  - contrib/hbide/idedetect.prg
  + contrib/hbide/resources/hbmk2_plugin_hbide.prg
    * Moved plugin to resources directory.
    - Commented plugin content.

  * utils/hbmk2/hbmk2.prg
    * Cleaned up path seps in plugin filenames.
2010-05-25 20:29:55 +00:00
Pritpal Bedi
678f8c14ac 2010-05-25 12:52 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
+ contrib/hbide/idedetect.prg
    + Added: -plugin= plugin to detect output target.

  * contrib/hbide/ideprojmanager.prg
    + Implemented: -plugin=( hb_dirBase() + "idedetect.prg" ).

      This implementation raises the barrier what was ailing hbIDE
      since long to detect the executable properly. 

      Thanks Viktor, this is wonderful addition to hbMK2.
2010-05-25 19:56:03 +00:00
Viktor Szakats
3458d7e9e7 2010-05-25 21:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * '-plug=' option renamed to '-plugin='
    + Added support for 'plugins=' line in .hbc files.
    % Plugins are now fully loaded just once at the beginning
      of hbmk2. (as opposed to every invocation)
    + Plugins are now automatically treated as .hrb or .prg
      based on _file content_. This means that any extension
      can be used for plugins for both .prg and .hrb code.
      When .prg or .hrb extension is used there isn't any
      extra trial made on the file content, it will be load
      as source or HRB respectively.
      Maybe we should find a new distinctive extension for 
      hbmk2 plugins.
    * Default extension for -plugin= option changed to .prg
      (was: .hrb)
    + Showing type of input plugin in -trace mode.
      ('source' or 'compiled')

  * config/detect.mk
    ! Applied fix to DragonFly patch, submitted by Tamas Tevesz.

  * src/vm/runner.c
    * Minor formatting.
2010-05-25 19:20:38 +00:00
Viktor Szakats
0120d2f7e6 2010-05-25 19:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/hbwin.ch
    + Added WAPI_MESSAGEBEEP()
    + Added MB_* constants.

  * contrib/hbwin/hbwin.ch
    ! Fixed some comments.

  * contrib/hbwin/win_svc.c
    + strlen() cast.
2010-05-25 17:57:30 +00:00
Viktor Szakats
513edc3356 2010-05-25 19:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Extended plugin API:
      - New macro expansion function:
          hbmk2_Macro( ctx, <str> )
      - New host variables:
          cTARGETTYPE, cTARGETNAME, lDEBUG, lMAP, lSTRIP, lINFO,
          lBEEP, lRUN, nErrorLevel

  * include/hbextern.ch
    + Added two recently added functions.

  * package/winuni/RELNOTES
    * Update one version number.
2010-05-25 17:09:12 +00:00
Viktor Szakats
3562c1e4b8 2010-05-25 16:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added one more envvar which is apparently used by users 
      even though it does nothing since many years.
      (see '10. TROUBLESHOOTING' section)

  * config/postinst.prg
    * Minor cleanups.
2010-05-25 14:43:31 +00:00
Viktor Szakats
bf304ae5c4 2010-05-25 16:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added DragonFly BSD to supported BSD system list.
2010-05-25 14:23:34 +00:00
Viktor Szakats
c95a4f9edc 2010-05-25 16:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbprintf.c
  * include/hbsetup.h
  * config/global.mk
  * config/bsd/libs.mk
  * config/detect.mk
    + Applied patch by Tamas Tevesz, making it possible to build
      Harbour for DragonFly BSD systems.
      Thanks a bunch.

  * utils/hbmk2/hbmk2.prg
    + Applied above change to hbmk2 code, so now it should also
      support DragonFly BSD. (pls test it)
2010-05-25 14:22:11 +00:00
Viktor Szakats
463d296dbf 2010-05-25 16:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added .hbi to the list of accepted projects at cmdline.
      This means that hbmk2 can be run like 'hbmk2 mylib.hbp mylib.hbi'
      to create the lib and also generate the implib.
    * '-keyheader=' renamed to '-reqheader='
    ! Fixed typo causing RTE while creating implibs for targets
      supporting OMF lib type.
2010-05-25 14:14:15 +00:00
Viktor Szakats
79ba9da837 2010-05-25 15:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tobject.prg
  * src/rtl/tpersist.prg
  * src/rtl/memoedit.prg
  * src/rtl/teditor.prg
  * contrib/hbmysql/tmysql.prg
  * contrib/hbmysql/tsqlbrw.prg
  * contrib/hbodbc/todbc.prg
  * contrib/hbfbird/tfirebrd.prg
  * contrib/hbpgsql/tpostgre.prg
  * contrib/hbmisc/hbedit.prg
  * contrib/hbtip/smtpcli.prg
  * contrib/hbtip/mail.prg
  * contrib/hbwin/win_reg.prg
  * contrib/hbwin/win_os.prg
  * contrib/hbwin/win_tprn.prg
  * contrib/hbwin/wce_sim.prg
    ! Fixed to check for proper type instead of using
      'DEFAULT ... TO'

  * contrib/hbct/ct.prg
    % EXIT/INIT FUNCTION -> EXIT/INIT PROCEDURE
2010-05-25 13:04:58 +00:00
Viktor Szakats
baa3c6b7c0 2010-05-25 13:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental feature to aid external dependency
      detection. Key header files can now be specified using
      '-keyheader=' option. In case such key headers are not
      found when evaluating '-inctrypath' conditional header
      directories. The goal is to make hbmk2 capable of
      replacing GNU Make for all of our contribs. F.e.:
      'clean':
        {HB_HOST_BIN_DIR}/hbmk2 hbfbird/hbfbird.hbp hbsms/hbsms.hbp -o../lib/${hb_plat}/${hb_comp}/ -clean
      simple make:
        {HB_HOST_BIN_DIR}/hbmk2 hbfbird/hbfbird.hbp hbsms/hbsms.hbp -o../lib/${hb_plat}/${hb_comp}/
      'install':
        {HB_HOST_BIN_DIR}/hbmk2 hbfbird/hbfbird.hbp hbsms/hbsms.hbp -o../lib/${hb_plat}/${hb_comp}/ -instpath=${HB_LIB_INSTALL}/ -info

    % Minor cleanup to some plugin API functions.

  * utils/hbmk2/examples/plug_moc.prg
    % Minor cleanup.

  * contrib/sddoci/tests/test1.prg
    + Showing field length and decimals.
2010-05-25 11:36:12 +00:00
Przemyslaw Czerpak
91cf12d405 2010-05-25 13:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/vm/hashes.c
  * harbour/src/vm/hashfunc.c
    + added support for keeping strict assign order in hash arrays. It's
      enabled optionally by setting HB_HASH_KEEPORDER hash array flag.
      It gives the same functionality as associative arrays in xHarbour
      (enabled by HSETAACOMPATIBILITY()) but this implementation is
      internally completely different. It does not introduce linear
      scan in add operation so enabling it should not reduce the
      performance in this operation. It can even improve it on some
      hardware reducing number of memory bytes which have to be moved.
      Only delete operation will force linear index scan. The most
      important in this implementation is that it does not need any
      additional functions like HAA*() in xHarbour. Just simply all
      existing functions operating on position indexes like HB_HPOS(),
      HB_HKEYAT(), HB_HVALUEAT(), HB_HPAIRAT(), HB_HDELAT(), HB_HSCAN()
      use as index natural order in which items were added to hash array.
      Also HB_HKEYS(), HB_HVALUES() and FOR EACH iterations respect it.
    + added new PRG functions
         HB_HKEEPORDER( <hValue> [, <lNewSetting> ] ) -> <lPrevSetting>
         HB_HSETORDER( <hValue> [, <lNewSetting> ] ) -> <hValue>
      which cam be used to enable/disable strict order in hash array.
      Enabling strict order for non empty hash arrays accept the order
      created after sorting existing item not the original assign order.
      Disabling strict order for non empty hash arrays may change the
      items order.
    ; TODO: add translation for xHarbour's HAA*() functions to hbcompat.ch
            and/or xhb library.

  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbnetio/netiosrv.c
    % reenabled TCP_NODELAY on client and server side
      I had to be really tired when I was making tests and I mixed
      hb_socketSetNoDelay() with hb_socketSetBlockingIO().
      Thanks to Aleksander Czajczynski who noticed the delay in his
      tests.

  * harbour/contrib/hbwin/olecore.c
    * minor cleanup
2010-05-25 11:20:34 +00:00
Viktor Szakats
6fce1cd697 2010-05-25 09:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/ctrand.prg
  * contrib/hbct/getsecrt.prg
  * contrib/hbct/keysec.prg
  * contrib/hbct/getinput.prg
  * contrib/hbct/screen3.prg
  * contrib/hbct/ct.prg
  * contrib/hbct/cttime.prg
  * contrib/hbct/numconv.prg
  * contrib/hbct/showtime.prg
  * contrib/hbct/ctmisc.prg
  * contrib/hbct/getinfo.prg
  * contrib/hbct/scrmark.prg
  * contrib/hbct/keysave.prg
  * contrib/hbct/fcopy.prg
    ! Fixed formatting.
    ! Fixed to use proper type validation instead of 'DEFAULT TO'.
    ! Fixed to use F_ERROR instead of -1.
2010-05-25 07:26:37 +00:00
Teo Fonrouge
b539031c2c 2010-05-24 20:53 UTC-0500 Teo Fonrouge (teo/at/windtelsoft/dot/com)
*  ChangeLog
     ! Fixed previous not accurate ChangeLog entry
2010-05-25 01:53:18 +00:00
Teo Fonrouge
94637137de 2010-05-24 19:37 UTC-0500 Teo Fonrouge (teo/at/windtelsoft/dot/com)
*  contrib/hbtip/tests/dbtohtml.prg
     ! end tags fixed
     * using HB_SYMBOL_UNUSED to pacify Harbour warnings ( -w3 )
2010-05-25 00:37:39 +00:00
Teo Fonrouge
46543b976b 2010-05-24 19:19 UTC-0500 Teo Fonrouge (teo/at/windtelsoft/dot/com)
*  contrib/hbtip/thtml.prg
     * removed old FOR EACH limitation
     * using HB_OSNewLine() as eol
     % on ::popNode added capability to check if end tags for the following
       tags are found: "tr","th","td"
       to end this tags, the user simply needs to call the current node
       with the minus ( - ) operator for the tag requiered to close:
         node - "th"

  *  ChangeLog
     ! Fixed wrong entry on my previous commit
2010-05-25 00:19:13 +00:00
Teo Fonrouge
77846542f5 2010-05-24 19:08 UTC-0500 Teo Fonrouge (teo/at/windtelsoft/dot/com)
*  contrib/hbtip/thtml.prg
2010-05-25 00:09:08 +00:00
Pritpal Bedi
2a9e1924eb * Omitted ChangeLog commit. 2010-05-24 22:39:47 +00:00
Pritpal Bedi
79ebb96bf7 2010-05-24 15:09 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/ideprojmanager.prg
    % Fixed: to start build executable in "Start in" folder.
2010-05-24 22:12:53 +00:00
Viktor Szakats
adad4eca95 2010-05-24 21:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed old regression causing 'inctrypath' option to "forget"
      adding detected include dirs to the tool command lines.
2010-05-24 19:36:46 +00:00