Commit Graph

79 Commits

Author SHA1 Message Date
Viktor Szakats
568586ace4 2012-07-19 22:09 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/hbfbird/tests/testapi.c
    * uncrustified
  * contrib/hbwin/olecore.c
    * minor formatting
2012-07-19 20:10:28 +00:00
Mindaugas Kavaliauskas
06164bab62 2011-12-19 17:49 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddads/adsx.c
    ! fixed BOF(), EOF() after DBSKIP(-1)
    + DBOI_KEYVAL

  * harbour/contrib/hbcairo/context.c
    ! fixed cairo_set_dash() to accept empty dash pattern array
  + harbour/contrib/hbcairo/ps.c
  * harbour/contrib/hbcairo/hbcairo.hbx
  * harbour/contrib/hbcairo/hbcairo.hbp
    + added some PostScript support

  * harbour/contrib/hbwin/olecore.c
    + added exception handling, extended error reporting information
2011-12-19 15:51:45 +00:00
Przemyslaw Czerpak
86e239eef6 2011-10-11 16:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    * added -CP437 to BCC switches

  * harbour/contrib/hbwin/olecore.c
     * pacified warning
2011-10-11 14:54:55 +00:00
Przemyslaw Czerpak
2a9eb57396 2011-08-27 12:56 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    * few cleanups in recently added functions

  * harbour/contrib/xhb/xhb.hbp
  * harbour/contrib/xhb/xhb.hbx
  + harbour/contrib/xhb/xhbprn.c
    * added xHarbour windows printer functions.

  * harbour/contrib/xhb/xhb.hbp
  * harbour/contrib/xhb/xhb.hbx
  + harbour/contrib/xhb/xhbole.prg
    * added xHarbour comnpatible TOLEAUTO class and OLE functions:
      CreateObject(), GetActiveObject(), CreateOLEObject()
2011-08-27 10:57:01 +00:00
Przemyslaw Czerpak
a74ef66d49 2011-08-09 14:26 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/classes.c
    ! added missing initialization of onError and destructor flags.
      The problem could be exploited when class inherits from more
      then one parent classes and onError handler[s] or destructor[s]
      were neither defined in the class nor in the first ancestor.

  * harbour/contrib/hbwin/olecore.c
    + added helper PRG functions:
         __oleInvokeMethod(), __oleInvokePut(), __oleInvokeGet(),
         __oleGetNameId()
2011-08-09 12:26:42 +00:00
Przemyslaw Czerpak
2e95027e6a 2011-08-08 12:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! typo in previous commit
2011-08-08 10:25:36 +00:00
Przemyslaw Czerpak
b814c028a8 2011-08-08 12:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbcomhb.c
    * indenting

  * harbour/contrib/xhb/xhb.hbp
  - harbour/contrib/xhb/xthrow.prg
  + harbour/contrib/xhb/xthrow.c
    * rewritten THROW() function in C

  * harbour/contrib/hbwin/olecore.c
    + add PRG function __OLEISDISP() which can be used to verify if given
      parameter is Harbour OLE pointer item.
2011-08-08 10:13:50 +00:00
Przemyslaw Czerpak
6844b06c1f 2011-07-23 15:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! fixed to use Harbour STR API instead of hardcoded ANSI CP for
      conversions between Harbour and OLE items.
      Patch provided by Phil Krylov with some minor modifications.
2011-07-23 13:08:53 +00:00
Przemyslaw Czerpak
c0becdeec8 2010-12-10 09:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
- harbour/contrib/hbwin/oleinit.c
    * removed old OLE initialization and cleanup code which was working
      only for main thread

  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/hbwin.hbp
  * harbour/contrib/hbwin/hbolesrv.c
  * harbour/contrib/hbwin/legacyco.c
    + added new OLE init/exit code which is thread oriented
      WARNING: now OLE is initialized when thread executes first time
               one of Harbour OLE functions not at application startup.
               C code which uses OLE without calling any Harbour PRG
               level OLE function should initialize OLE for each thread
               calling hb_oleInit() - it's very fast function so it can
               be called without noticeable overhead. Please remember
               that such initialization should be done for each thread.
      Please test it - I do not have access to MS-Windows computer now
      so I cannot make any test myself.
2010-12-10 08:08:35 +00:00
Przemyslaw Czerpak
49e0b8e4e0 2010-11-09 10:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/sdf1.c
    ! fixed bug in SDF import procedure - many thanks
      to Enrico Maria Giordano for reporting the problem
      and to Vicente Guerra for locating the reason
      BTW fix committed to xHarbour may work but it's not correct,
      I suggest to update it.

  * harbour/src/rtl/hbdyn.c
  * harbour/src/rtl/hbsocket.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/contrib/hbct/bitnum.c
  * harbour/contrib/hbwin/olecore.c
    * pacified some of MSVC6 warnings reported by Andi

  * harbour/utils/Makefile
    * added internal/developers build switch
2010-11-09 09:47:51 +00:00
Mindaugas Kavaliauskas
a1c6eb6da3 2010-10-14 16:45 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbwin/axcore.c
    ! fixed CPP compilation by using compiler macros in method calls
  * harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/olecore.c
    + implemented additional OLE destructors. Added Undavise() call 
      to :__hSink destructor. This fixes unresponsive OLE server app 
      behaviour after corresponding Harbour object is freed
    ; Code proposed by Przemek, some fixes applied
2010-10-14 13:46:38 +00:00
Przemyslaw Czerpak
22b6f601a5 2010-09-27 11:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/olecore.c
    + C functions hb_oleItemGetDispatch() and hb_oleDispatchToItem() made
      public
2010-09-27 09:55:25 +00:00
Przemyslaw Czerpak
e97c2c1ab7 2010-09-23 17:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/hbolesrv.c
    ! fixed typos in string terminating characters reported by
      Mindaugas
2010-09-23 15:36:56 +00:00
Przemyslaw Czerpak
e102c34c05 2010-09-23 11:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! fixed to return assigned value instead of 1-st parameter when more
      then one parameter is used in code like:
         object:_name( param, value )

  * harbour/contrib/hbwin/hbolesrv.c
    ! fixed updating of OLE object reference counter used by
      DllCanUnloadNow()
2010-09-23 09:24:57 +00:00
Mindaugas Kavaliauskas
b5af3b0f73 2010-09-23 06:05 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbwin/olecore.c
    + added possibility to use more than one parameter in property put 
      call. This allows to make a workaround for non-existant Harbour
      language syntax:
         object.name(param) = value
      Workaround syntax:
         object._name(param, value)
    + added comment documenting OLE automation behaviour for various 
      VBScript sentences
  + harbour/contrib/hbwin/tests/pdfcreat.prg
    + added sample code for producing .pdf documents using OLE and PDFCreator
2010-09-23 03:04:11 +00:00
Przemyslaw Czerpak
7f2ff9b35f 2010-09-13 17:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/hbolesrv.c
    + added new 'HB_USHORT uiClass' parameter to hb_oleDispInvoke()
      C function and updated corresponding code.
2010-09-13 15:01:10 +00:00
Przemyslaw Czerpak
0e90340325 2010-09-13 15:46 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! use hb_oleVariantToItemEx() instead of hb_oleVariantToItem()
      in hb_oleSafeArrayToItem() to keep original object class when
      arrays are created.
    * keep original OLE object class when new OLE object is created
      in parameters passed by reference or returned by executed
      OLE method
    * keep original OLE object class when new OLE object is created
      by overloaded [] operator
    + added 3-rd parameter to __OleEnumNext() function which allow
      to set OLE object class.

  * harbour/contrib/hbwin/oleauto.prg
    * keep original OLE object class in enumerators (__OleEnumNext())
2010-09-13 13:46:24 +00:00
Mindaugas Kavaliauskas
380597c130 2010-09-13 16:05 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/olecore.c
    + implemented WIN_OLEAUTO class overloading
  * harbour/contrib/hbwin/legacy.prg
    - removed "[]" overloading. It's in the core object now.
  * src/rtl/hbjson.c
    ! fixed long long printf format
2010-09-13 13:05:12 +00:00
Przemyslaw Czerpak
e79bb83514 2010-09-10 09:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! do not convert parameters passed by reference for DISPID_PROPERTYPUT
      It should fix potential memory leak because in such case we do not
      use PutParams() which release them.
    ! return assigned value instead of index in __OPINDEX() method.
2010-09-10 07:58:01 +00:00
Mindaugas Kavaliauskas
15b23e3746 2010-09-10 05:14 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/oleauto.prg
    + implemented overloading of operator []
  * harbour/vm/classes.c
    * pacified compiler warning
2010-09-10 02:15:16 +00:00
Przemyslaw Czerpak
616efab846 2010-08-24 11:16 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! added missing call to Release() method in __OleGetActiveObject()
      function. It should fix problem reported by Daniel Garcia-Gil.
2010-08-24 09:16:42 +00:00
Viktor Szakats
343f1caba4 2010-07-14 19:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
    ! Fix for paint bug typo. Report/patch by Antonio Linares.

  * src/rtl/hbdoc.prg
    ! __HBDOC_FROMSOURCE(): added parameter validation.

  * tests/stripdoc.hbs
    ! Fixed -w3 warning.

  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgsink.c
  * contrib/gtwvg/wvgwing.c
  * contrib/hbwin/hbwinole.h
  * contrib/hbwin/win_shell.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/hbolesrv.c
    + Applied patch sent by Tamas Tevesz, targeting to change
      OLE code to use MS supplied macros to access certain
      structure elements. Also contains tweaks to NONAMELESSUNION
      Windows mess.
      "the attached is take two to use ole api accessors instead of
       hard-coded member names which may or may not be present anyway."
    ; Plus some casing adjusments in macro variable names.

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgwin.c
    % Deleted ( HWND ) casts from MS Windows-defined constants.
      Still when using plain MS defined constant, msvc will
      show some warnings when compiled in C mode:
         gtwvg.c(3594) : warning C4306: 'type cast' : conversion from 'int' to 'HWND' of greater size
      Couldn't find a way to defeat it.

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
    + Upped IE version we are building against to 0x0500.
      This avoids some plain C mode msvc warnings.

  * contrib/gtwvg/wvgwing.c
    + Added ( HB_PTRDIFF ) cast to newly activated code
      after making above change.
2010-07-14 17:25:34 +00:00
Viktor Szakats
b03d24742a 2010-07-08 08:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
  * src/rtl/filebuf.c
  * src/rtl/fssize.c
    * HB_FOFFSET vars renamed to have n prefix (instead of ul and ll)

  * contrib/make.hbs
    ! Fixed output dirs in stdalone mode.

  * contrib/hbsqlit3/hbsqlit3.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_bmp.c
    * HB_SIZE vars renamed.

  * utils/hbmk2/hbmk2.prg
    % Never delete the same file twice in -hbimplib -clean mode.
2010-07-08 06:50:49 +00:00
Przemyslaw Czerpak
73a06f6c8f 2010-06-15 12:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
  * harbour/include/hbvmpub.h
  * harbour/src/common/expropt1.c
  * harbour/src/common/expropt2.c
  * harbour/src/common/hbstr.c
  * harbour/src/compiler/gencc.c
  * harbour/src/vm/hvm.c
  * harbour/src/vm/itemapi.c
  * harbour/src/vm/task.c
  * harbour/src/rtl/abs.c
  * harbour/src/rtl/hbdyn.c
  * harbour/src/rdd/dbsql.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/sddoci/sddoci.c
  * harbour/contrib/sddsqlt3/sddsqlt3.c
    * renamed HB_LONG_{MIN,MAX} to HB_VMLONG_{MIN,MAX} and
      HB_INT_{MIN,MAX} to HB_VMINT_{MIN,MAX} to not confuse users
      after renaming HB_LONG to HB_MAXINT and LONG to HB_LONG.
      They could expect that HB_LONG_{MIN,MAX} are for HB_LONG type.
2010-06-15 10:00:45 +00:00
Viktor Szakats
81c9b0506c 2010-06-04 15:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/*
    * Deleted 'www.' from harbour-project.org website name.
      (www.harbour-project.org -> harbour-project.org)
2010-06-04 13:32:23 +00:00
Przemyslaw Czerpak
05db043943 2010-05-29 10:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! fixed old bug in passing parameters by reference to OLE objects
      (they were cleared in reverted order so half of the complex variants
      were cleared before coping to HVM items)

  + harbour/contrib/hbwin/tests/oletst4.prg
  + harbour/contrib/hbwin/tests/olesrv4.hbp
  + harbour/contrib/hbwin/tests/olesrv4.prg
  + harbour/contrib/hbwin/tests/oletst4.hbp
    + added  example of OLE server returning to client HVM objects as
      OLE object and also some other values using parameters passed by
      reference with client code.
      Remember about registering the server by 'regsvr32 olesrv2.dll'
      before testing the client code.
2010-05-29 08:30:15 +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
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
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
Przemyslaw Czerpak
3f4fbb20d7 2010-05-22 13:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    * minor modification in hb_oleDispInvoke() function
2010-05-22 11:41:38 +00:00
Przemyslaw Czerpak
54b5e1564a 2010-05-20 19:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbf1.c
    * minor cleanup

  * harbour/include/hbapi.h
    + added new macro HB_IS_EVALITEM() - returns true for items which can
      understand EVAL message i.e. CODEBLOCK and SYMBOL items.

  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/hbwinole.h
    * modified hb_oleDispInvoke() function to accept as additional
      parameter pointer to HVM item instead of pointer to DISPID.
      Such version is more universal.
2010-05-20 17:50:09 +00:00
Przemyslaw Czerpak
8c8aadfc3b 2010-05-18 02:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
  * harbour/src/vm/hvm.c
    + added new C function hb_vmIsActive()

  * harbour/src/rtl/memvarhb.prg
    ! fixed procedure returning value
    ! store only simple variables in HB_MVSAVE() just like __MSAVE()
      Possible extension: add option to store also NIL, arrays, hashes
      and maybe object variables.
    ! restore variables in HB_MVRESTORE() as private ones just like
      __MVRESTORE()

  * harbour/contrib/hbwin/oleinit.c
  * harbour/contrib/hbwin/olecore.c
    * updated to compile and link in WinCE builds. Now code using OLE
      can be linked with MinGWCE builds without any errors but I have
      no idea if it works. Can someone check it?
2010-05-18 00:42:51 +00:00
Przemyslaw Czerpak
b5bf98ef0f 2010-05-15 20:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! added protection against possible buffer overflow when more then
      32 parameters is passed by reference from foreign code - thank to
      Mindaugas for locating the problem.
2010-05-15 18:02:33 +00:00
Przemyslaw Czerpak
1b39f1e55c 2010-05-15 10:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbwinole.h
  * harbour/contrib/hbwin/olecore.c
    + added new C function hb_oleDispInvoke()

  * harbour/contrib/hbwin/axcore.c
    * use hb_oleDispInvoke() - please test if activex controls still work
      correctly
2010-05-15 08:32:36 +00:00
Viktor Szakats
e97a7501d0 2010-03-14 21:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
  * src/common/hbwince.c
  * include/hbwince.h
  * include/hbthread.h
  * contrib/hbct/ctnet.c
  * contrib/hbodbc/Makefile
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
  * contrib/rddsql/sddodbc/Makefile
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_dlg.c
  * config/wce/msvcarm.mk
    + Added support for msvcarm 2008.

  * utils/hbmk2/hbmk2.prg
    ! Synced msvcarm dynlib creatino options with Harbour build.
2010-03-14 20:32:31 +00:00
Przemyslaw Czerpak
2dfec6cf2f 2010-03-05 13:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrddnsx.h
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/include/hbrddntx.h
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/hsx/hsx.c
  * harbour/src/rdd/usrrdd/usrrdd.c
  * harbour/src/rtl/hbsocket.c
    ! fixed casting for compilers which needs strict aliasing rules

  * harbour/harbour.spec
    ! fixed typo in hbxpp library name
    ! fixed to work with SDDSQLT3 library

  * harbour/contrib/hbwin/olecore.c
    ! fixed buffer overflow caused by wrongly used sizeof() instead of
      HB_SIZEOFARRAY()

  * harbour/contrib/rddsql/sddodbc/sddodbc.c
    ! fixed wrongly used & operator

  * harbour/src/rtl/hbsocket.c
    ! fixed to compile with OpenWatcom Linux builds
2010-03-05 12:19:49 +00:00
Przemyslaw Czerpak
72bc76e67a 2010-02-23 17:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/dynlibhb.c
    ! casting for OS2 builds

  * harbour/src/rtl/hbinet.c
    ! added automatic WINSOCK initialization in HB_INETIFINFO() function

  * harbour/contrib/hbwin/olecore.c
    % small optimization in OLE method calls
      (use static buffer for message name)
2010-02-23 16:11:16 +00:00
Viktor Szakats
cd83e94235 2010-02-16 11:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbthread.h
  * src/vm/fm.c
    ! Tweaks to allow msvcarm 2003 build.

  * src/vm/maindllp/dllpcode.c
  * src/vm/maindllh.c
    ! Deleted (AFAIK unnecessary) HB_EXPORT to make msvcarm 2003 happy.

  * src/common/hbgete.c
  * src/rtl/net.c
    ! Fixed missing #include hbwince.h.

  * external/sqlite3/Makefile
    - Disabled for msvcarm 2003.

  * contrib/gtalleg/Makefile
    - Disabled for msvcarm.

  * contrib/hbodbc/Makefile
  * contrib/rddsql/sddodbc/Makefile
    ! Do not force sql.h header for msvcarm 2003.

  * contrib/rddbmcdx/hbbmcdx.h
    ! Fixed HB_EXTERN placement to make msvcarm 2003 happy.

  * contrib/hbct/ctnet.c
  * contrib/xhb/hbsyslog.c
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_dlg.c
    ! Fixed to make them compile on msvcarm 2003.

  * config/wce/msvcarm.mk
  * utils/hbmk2/hbmk2.prg
    ! Fixed warning option for msvcarm 2003.

  * utils/hbmk2/hbmk2.prg
    ! Fixed type causing RTE with msvcarm targets.

  ; NOTE: hbcurl doesn't build with msvcarm 2003, so either
          don't enable it, or experiment with HB_USER_CFLAGS=-U_WIN32_WCE
          hack. The problem lies somewhere in libcurl headers,
          not Harbour code.
2010-02-16 10:14:24 +00:00
Viktor Szakats
5cfcb4f323 2010-02-09 03:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/Makefile
  * src/common/hbwince.c
  + src/common/hbwin.c
    ! Moved Windows UNICODE helper function into new source,
      leaving WinCE API local emulation into separate source file.

  * include/hbwince.h
    + Now automatically includes windows.h. (since it depends on it)

  * include/hbdefs.h
    - Deleted HB_OS_WIN_USED autodetection. Not needed anymore.
    ! Fixed to not include hbwince.h anymore. It should be included
      directly from source files, where needed.

  * include/hbdefs.h
  * contrib/hbodbc/odbc.c
  * contrib/rddsql/sddodbc/odbcdd.c
    + Always defining HB_TCHAR_*() macros. They will be dummies
      in non-Windows or non-UNICODE builds.

  * include/clipdefs.h
    ! Legacy Clipper types moved to the bottom, because it's
      no longer true that hbapi.h defines their dependent types
      (our legacy ones).

  * contrib/hbwin/win_bmpd.c
  * contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/wapi_alloc.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/hbwin.h
  * contrib/hbwin/hbwinole.h
  * contrib/hbwin/mapi.c
  * contrib/hbwin/wapi_wingdi_font.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/wce_simc.c
  * contrib/hbwin/wapi_winnls.c
  * contrib/hbwin/win_bmp.c
  * contrib/hbwin/win_com.c
  * contrib/hbwin/Makefile
  * contrib/hbwin/win_regc.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/wapi_commctrl.c
  * contrib/hbwin/win_osc.c
  * contrib/hbwin/wce_smsc.c
  * contrib/hbwin/wapi_err.c
  * contrib/hbwin/legacycd.c
  * contrib/hbwin/hbwapi.h
  * contrib/hbwin/wapi_shellapi.c
  * contrib/hbwin/win_dlg.c
  * contrib/hbwin/legacyco.c
  * contrib/hbwin/win_dll.c
  * contrib/hbwin/wapi_winbase_mutex.c
    + Reworked the way windows.h is included and headers
      are organized. New types allow complete control and
      flexibility. Finally.

  * src/vm/mainwin.c
  * src/vm/maindll.c
  * src/vm/maindllh.c
  * src/vm/cmdarg.c
  * src/vm/maindllp.c
  * src/vm/task.c
  * src/vm/fm.c
  * src/vm/extrap.c
  * src/vm/thread.c
  * src/vm/hvmall.c
  * src/vm/dynlibhb.c
  * src/common/hbgete.c
  * src/common/hbffind.c
  * src/common/hbver.c
  * src/common/hbtrace.c
  * src/common/hbfsapi.c
  * src/common/hbdate.c
  * src/rtl/gtwin/gtwin.c
  * src/rtl/fstemp.c
  * src/rtl/gttone.c
  * src/rtl/fserr.c
  * src/rtl/filesys.c
  * src/rtl/lang.c
  * src/rtl/diskspac.c
  * src/rtl/console.c
  * src/rtl/cputime.c
  * src/rtl/gtclip.c
  * src/rtl/oemansi.c
  * src/rtl/disksphb.c
  * src/rtl/net.c
  * src/rtl/gtgui/gtgui.c
  * src/rtl/hbproces.c
  * src/rtl/gtwvt/gtwvt.h
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/gtkbstat.c
  * contrib/hbct/ctnet.c
  * contrib/hbct/dattime3.c
  * contrib/hbct/disk.c
  * contrib/hbodbc/odbc.c
  * contrib/xhb/hboutdbg.c
  * contrib/xhb/xhberrc.c
  * contrib/xhb/filestat.c
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbqt/hbqt_base.cpp
  * contrib/hbnf/getenvrn.c
  * contrib/rddsql/sddodbc/odbcdd.c
  * contrib/rddads/adsx.c
  * contrib/rddads/adsfunc.c
  * contrib/rddads/rddads.h
  * contrib/rddads/ads1.c
  * contrib/rddads/adsmgmnt.c
  * examples/hbapollo/apollo.c
    + HB_OS_WIN_USED trick replaced with direct windows.h
      inclusion, just like we do for all other OSes.
    + Also inclded hbwince.h in source files which required
      it. Please test it.

  * contrib/hbqt/gtqtc/gtqtc.cpp
    - Deleted commented code to not create false grep hits
      all the time.
2010-02-09 02:58:53 +00:00
Viktor Szakats
425ce2ea23 2010-02-07 11:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/hbwin.ch
    + Added WAPI_EXTTEXTOUT()

  * contrib/hbwin/axcore.c
  * contrib/hbwin/olecore.c
    * USHORT -> HB_USHORT

  * contrib/hbwin/win_prn2.c
    * USHORT -> HB_SIZE plus some changes accordingly.

  * src/rtl/gtwin/gtwin.c
  * src/rtl/gtwvt/gtwvt.c
    * USHORT -> HB_WCHAR, HB_USHORT

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvggui.h
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgsink.c
  * contrib/gtwvg/wvgwing.c
    * USHORT -> HB_WCHAR, HB_USHORT, UINT, int

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
    - Deleted unused structures (using USHORT).
2010-02-08 10:50:44 +00:00
Viktor Szakats
f9336a957b 2010-02-07 16:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/cdpapi.c
    ! Fixed type when manually correcting 'unsigned char' to UCHAR
      to sync with declaration.

  * contrib/gtwvg/gtwvg.c
    ! Fixed wrong casts (HB_LONG instead of long)

  * src/pp/ppcore.c
  * src/vm/macro.c
  * src/vm/hashes.c
  * src/vm/itemapi.c
  * src/vm/hvm.c
  * src/vm/arrays.c
  * src/vm/task.c
  * src/vm/thread.c
  * src/vm/extend.c
  * src/common/hbwince.c
  * src/common/expropt1.c
  * src/common/hbstr.c
  * src/common/expropt2.c
  * src/common/hbdate.c
  * src/macro/macro.yyc
  * src/macro/macro.y
  * src/macro/macro.yyh
  * src/macro/macrolex.c
  * src/rtl/gttrm/gttrm.c
  * src/rtl/hbstrfmt.c
  * src/rtl/hbcrc.c
  * src/rtl/minmax.c
  * src/rtl/hbrandom.c
  * src/rtl/hbsocket.c
  * src/rtl/hbbit.c
  * src/rtl/hbgtcore.c
  * src/rtl/cputime.c
  * src/rtl/idle.c
  * src/rtl/itemseri.c
  * src/rtl/gtsln/gtsln.c
  * src/rtl/gtpca/gtpca.c
  * src/rtl/hbznet.c
  * src/rtl/hbhex.c
  * src/rtl/seconds.c
  * src/rtl/abs.c
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/hbbyte.c
  * src/rtl/val.c
  * src/rdd/dbfntx/dbfntx1.c
  * src/rdd/dbsql.c
  * src/rdd/sdf1.c
  * src/rdd/delim1.c
  * src/rdd/dbf1.c
  * src/rdd/dbffpt/dbffpt1.c
  * src/compiler/hbmain.c
  * src/compiler/complex.c
  * src/compiler/harbour.yyc
  * src/compiler/harbour.y
  * src/compiler/harbour.yyh
  * include/hbvmpub.h
  * include/hbgtcore.h
  * include/hbthread.h
  * include/hbdefs.h
  * include/hbmacro.h
  * include/hbapi.h
  * include/hbapiitm.h
  * include/hbznet.h
  * include/hbvm.h
  * include/hbcomp.h
  * include/hbcompdf.h
  * include/hbexprop.h
  * include/hbsocket.h
  * include/hbchksum.h
  * include/hbexprb.c
  * include/hbdate.h
  * contrib/hbct/bitnum.c
  * contrib/hbct/dbftools.c
  * contrib/hbct/files.c
  * contrib/hbct/disk.c
  * contrib/xhb/xhbfunc.c
  * contrib/hbcurl/hbcurl.c
  * contrib/hbnetio/netiocli.c
  * contrib/hbnetio/netiosrv.c
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgcore.c
  * contrib/rddads/ads1.c
  * contrib/hbwin/olecore.c
    * HB_LONG  -> HB_MAXINT
    * HB_ULONG -> HB_MAXUINT
2010-02-07 15:37:24 +00:00
Viktor Szakats
e2e2c4587e 2010-02-07 14:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/itemapi.c
  * src/vm/hvm.c
  * src/vm/arrays.c
  * src/vm/extend.c
  * src/common/hbstr.c
  * src/common/hbdate.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/compiler/gencc.c
  * tests/bldtest/bldtest.c
  * include/hbxvm.h
  * include/hbdefs.h
  * include/hbapi.h
  * include/hbapiitm.h
  * contrib/hbwin/olecore.c
  * contrib/hbbmcdx/bmdbfcdx.c
    * LONGLONG  -> HB_LONGLONG
    * ULONGLONG -> HB_ULONGLONG
2010-02-07 13:53:35 +00:00
Viktor Szakats
2cdc25aba4 2009-12-09 16:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/olecore.c
    * Changed to use HB_SIZE instead of ULONG.
    ; Please review me, I wouldn't like to break OLE code.

    ; Only one place remains in hbwin which uses ULONG, as return 
      value of hb_fsSeek(). In this case we need to think about it 
      some more.

  * contrib/hbqt/hbqt.ch
    * Minor formatting.
2009-12-09 15:43:37 +00:00
Viktor Szakats
01fadd92e8 2009-12-09 16:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_slots.cpp
    % Eliminated two variables.

  * contrib/hbwin/oleinit.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/axcore.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_com.c
  * contrib/hbwin/wapi_commctrl.c
    * Using HB_TRUE / HB_FALSE consistenly everywhere.
2009-12-09 15:35:07 +00:00
Przemyslaw Czerpak
094aea1ff3 2009-12-09 15:30 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapilng.h
  + harbour/include/hbmsgreg.h
    + added common for all Harbour lang modules (msg*.c) header file
      with initialization code

  * harbour/src/lang/msgbe866.c
  * harbour/src/lang/msgbewin.c
  * harbour/src/lang/msgbg866.c
  * harbour/src/lang/msgbgiso.c
  * harbour/src/lang/msgbgmik.c
  * harbour/src/lang/msgbgwin.c
  * harbour/src/lang/msgca.c
  * harbour/src/lang/msgcs852.c
  * harbour/src/lang/msgcsiso.c
  * harbour/src/lang/msgcskam.c
  * harbour/src/lang/msgcswin.c
  * harbour/src/lang/msgde.c
  * harbour/src/lang/msgdewin.c
  * harbour/src/lang/msgel.c
  * harbour/src/lang/msgelwin.c
  * harbour/src/lang/msgeo.c
  * harbour/src/lang/msges.c
  * harbour/src/lang/msgeswin.c
  * harbour/src/lang/msgeu.c
  * harbour/src/lang/msgfr.c
  * harbour/src/lang/msggl.c
  * harbour/src/lang/msghe862.c
  * harbour/src/lang/msghewin.c
  * harbour/src/lang/msghr437.c
  * harbour/src/lang/msghr852.c
  * harbour/src/lang/msghriso.c
  * harbour/src/lang/msghrwin.c
  * harbour/src/lang/msghu852.c
  * harbour/src/lang/msghucwi.c
  * harbour/src/lang/msghuiso.c
  * harbour/src/lang/msghuwin.c
  * harbour/src/lang/msgid.c
  * harbour/src/lang/msgis850.c
  * harbour/src/lang/msgit.c
  * harbour/src/lang/msgko.c
  * harbour/src/lang/msgltwin.c
  * harbour/src/lang/msgnl.c
  * harbour/src/lang/msgpl852.c
  * harbour/src/lang/msgpliso.c
  * harbour/src/lang/msgplmaz.c
  * harbour/src/lang/msgplwin.c
  * harbour/src/lang/msgpt.c
  * harbour/src/lang/msgptiso.c
  * harbour/src/lang/msgro.c
  * harbour/src/lang/msgru866.c
  * harbour/src/lang/msgrukoi.c
  * harbour/src/lang/msgruwin.c
  * harbour/src/lang/msgsk852.c
  * harbour/src/lang/msgskiso.c
  * harbour/src/lang/msgskkam.c
  * harbour/src/lang/msgskwin.c
  * harbour/src/lang/msgsl437.c
  * harbour/src/lang/msgsl852.c
  * harbour/src/lang/msgsliso.c
  * harbour/src/lang/msgslwin.c
  * harbour/src/lang/msgsr852.c
  * harbour/src/lang/msgsriso.c
  * harbour/src/lang/msgsrwin.c
  * harbour/src/lang/msg_tpl.c
  * harbour/src/lang/msgtr857.c
  * harbour/src/lang/msgtrwin.c
  * harbour/src/lang/msgua866.c
  * harbour/src/lang/msguados.c
  * harbour/src/lang/msguakoi.c
  * harbour/src/lang/msguawin.c
  * harbour/src/lang/msgzhb5.c
  * harbour/src/lang/msgzhgb.c
    * modified to use initialization code defined in common for all
      lang modules header file.

  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/hbqt/qtgui/QApplication.cpp
  * harbour/contrib/hbqt/qth/QApplication.qth
    * use default GT startup cvode (#include "hbgtreg.h")

  * harbour/include/hbinit.h
  + harbour/include/hbiniseg.h
    * replaced HB_MSC_STARTUP code with more universal HB_DATASEG_STARTUP
    * moved HB_DATASEG_STARTUP code to separate header file to reduce
      modifications in other files when this code has to be changed or
      extended
    + added support for startup code in OpenWatcom C builds. Now we can
      create OpenWatcom Harbour binaries without forcing C++ mode.
      I've tested Linux and Win32 builds and they works correctly.
      Probably similar solution can be used also for other C compilers
      which do not have native interface to define starup code.

  * harbour/src/compiler/genc.c
  * harbour/utils/hbmk2/hbmk2.prg
  * harbour/include/hbcdpreg.h
  * harbour/include/hbgtreg.h
  * harbour/src/rtl/hbregex.c
  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/delim1.c
  * harbour/src/rdd/sdf1.c
  * harbour/src/pp/pplib3.c
  * harbour/contrib/rddads/ads1.c
  * harbour/contrib/rddads/adsx.c
  * harbour/contrib/rddsql/sddfb/fbirddd.c
  * harbour/contrib/rddsql/sddmy/mysqldd.c
  * harbour/contrib/rddsql/sddodbc/odbcdd.c
  * harbour/contrib/rddsql/sddpg/pgsqldd.c
  * harbour/contrib/rddsql/sqlbase.c
  * harbour/contrib/rddsql/sqlmix.c
  * harbour/contrib/hbbmcdx/bmdbfcdx.c
  * harbour/contrib/hbmemio/memio.c
  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbbtree/hb_btree.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/win_com.c
    * modified to use HB_DATASEG_STARTUP instead of HB_MSC_STARTUP
      Now HB_MSC_STARTUP is local macro used only in hbinit.h.
      Please make MSVC build tests.

  * harbour/contrib/hbmemio/memio.c
    ! declare s_fileFuncs structure as static
    * removed unnecessary code to directly register HB_MEMIO symbol.
      Mindaugas if you need it for some reasons then I can reactivate it
      but I would like to know why it's necessary for you.

  * harbour/src/vm/task.c
    ! added missing {}

  * harbour/src/vm/fm.c
    * locally disabled "unreachable code" warnings for dlmalloc.c
      compilation by OpenWatcom in pure C mode

  * harbour/src/rtl/hbzlibgz.c
    * minor code cleanup

  * harbour/src/rtl/filesys.c
    * pacified OS/2 warnings

  * harbour/contrib/hbcairo/core.c
    ! fixed casting for C++ builds

  * harbour/contrib/hbwin/wapi_winbase.c
    ! fixed casting

  * harbour/src/Makefile
    * changed the order of compiled libraries to improve little bit
      the speed in concurrent (-j<N>) builds
2009-12-09 14:33:48 +00:00
Mindaugas Kavaliauskas
1334d9c9df 2009-12-01 16:39 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/axcore.c
    * changed error system name from OLE to WINOLE
    * renumerated error subcodes starting from 1001
2009-12-01 14:42:57 +00:00
Przemyslaw Czerpak
f56d654c63 2009-11-30 16:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    - removed not longer working HB_DB_DRVEXT
    + added HB_USER_DLL_ADDONS which can be used to activate rebuilding
      Harbour shared library in postinst phase with additional libraries
      specified by user in above envvar - it's not officially supported
      functionality but temporary workaround until we will not add some
      more generic support for above feature so I do not document it in
      INSTALL

  * harbour/contrib/hbwin/olecore.c
    + added support for conversion safe arrays with any type variants
      to Harbour - please test
2009-11-30 15:52:00 +00:00
Przemyslaw Czerpak
ae856df100 2009-11-30 04:45 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    + added support for passing OLE pointer item as VT_DISPATCH variants
    + added support for updating VT_DISPATCH and VT_UNKNOWN parameters
      passed by reference
      Please test.
2009-11-30 03:45:21 +00:00
Przemyslaw Czerpak
e0562e1e79 2009-11-28 13:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/olecore.c
    ! fixed typo in last commit
2009-11-28 12:27:56 +00:00
Przemyslaw Czerpak
e881381b1e 2009-11-28 13:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/fm.c
    ! fixed typo - thanks to Bill for info

  * harbour/contrib/hbwin/axcore.c
    * minor cleanup

  * harbour/contrib/hbwin/olecore.c
    + added support for VT_UNKNOWN variants translated to Harbour
      OLE objects (WIN_OLEAUTO) - please test
2009-11-28 12:03:21 +00:00