Commit Graph

108 Commits

Author SHA1 Message Date
Viktor Szakats
fd4c743825 2008-08-27 00:54 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbinit.h
   * source/rtl/gtwin/gtwin.c
   * source/rtl/gtwvt/gtwvt.c
   * source/compiler/genc.c
     + Enabled init functions for MSVC 64-bit in C mode.
     ; NOTE: You get the idea, please comment. If there is 
             no simpler/easier/shorter way to achieve this, 
             I'll update the rest 150 files, too.
2008-08-26 23:03:56 +00:00
Viktor Szakats
c7200cdcf7 2008-08-26 13:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/compiler/hbmain.c
     ! Text casing fixed in some warning messages.
     ! Attempted to update hardcoded declarations for TGET methods.
       Some of the were removed, for some of them the parameter list 
       was updated to be in sync with current tget.prg.

   * contrib/gtalleg/gtalleg.c
   * contrib/gtwvg/gtwvg.c
   * contrib/hbbmcdx/bmdbfcdx.c
   * contrib/hbbmcdx/hbbmcdx.h
   * contrib/hbbtree/hb_btree.c
   * contrib/hbct/ctnet.c
   * contrib/hbct/ctstrfil.c
   * contrib/hbct/ctwin.c
   * contrib/hbcurl/hbcurl.c
   * contrib/hbgd/gdwrp.c
   * contrib/hbmzip/hbmzip.c
   * contrib/hbnf/fttext.c
   * contrib/hbtip/utils.c
   * contrib/xhb/freadlin.c
   * contrib/xhb/hbxml.c
   * contrib/xhb/hbxml.h
   * doc/codestyl.txt
   * doc/en/garbage.txt
   * doc/en/hb_apifs.txt
   * include/hbapigt.h
   * include/hbchksum.h
   * include/hbdbsort.h
   * include/hbgtcore.h
   * include/hbrddcdx.h
   * include/hbrdddbf.h
   * include/hbrdddel.h
   * include/hbrddntx.h
   * include/hbrddsdf.h
   * include/hbset.h
   * include/hbsxfunc.h
   * source/rdd/dbf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/dbffpt/dbffpt1.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/dbsql.c
   * source/rdd/hbsix/sxcompr.c
   * source/rdd/hbsix/sxsem.c
   * source/rdd/hsx/hsx.c
   * source/rtl/console.c
   * source/rtl/copyfile.c
   * source/rtl/fssize.c
   * source/rtl/fstemp.c
   * source/rtl/gt_tpl/gt_tpl.c
   * source/rtl/gtapi.c
   * source/rtl/gtcgi/gtcgi.c
   * source/rtl/gtcrs/gtcrs.c
   * source/rtl/gtdos/gtdos.c
   * source/rtl/gtos2/gtos2.c
   * source/rtl/gtpca/gtpca.c
   * source/rtl/gtsln/gtsln.c
   * source/rtl/gtstd/gtstd.c
   * source/rtl/gttrm/gttrm.c
   * source/rtl/gtwin/gtwin.c
   * source/rtl/gtwvt/gtwvt.c
   * source/rtl/gtxwc/gtxwc.c
   * source/rtl/hbgtcore.c
   * source/rtl/hbmd5.c
   * source/rtl/isprint.c
   * source/rtl/memofile.c
   * source/rtl/philes.c
   * source/rtl/set.c
   * source/vm/memvars.c
   * source/vm/runner.c
   * utils/hbdoc/hbdfrdln.c
   * utils/hbmake/hbmfrdln.c
     * FHANDLE -> HB_FHANDLE
     * hbct: HB_ITEM_PTR -> PHB_ITEM
2008-08-26 11:33:03 +00:00
Viktor Szakats
55ae11bfcd 2008-08-24 13:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/runner.c
   * source/vm/fm.c
   * source/common/hbver.c
   * source/rtl/hbgtcore.c
   * source/rtl/gtwvt/gtwvt.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/workarea.c
   * source/rdd/wacore.c
   * source/rdd/sdf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/delim1.c
   * source/rdd/dbf1.c
   * source/rdd/wafunc.c
   * source/rdd/dbffpt/dbffpt1.c
   * source/compiler/hbmain.c
   * source/compiler/fixflex.c
   * source/compiler/gencobj.c
   * source/compiler/genc.c
   * source/compiler/harbour.yyc
   * source/compiler/harbour.y
   * contrib/hbct/disk.c
   * contrib/hbwhat32/whtcdlg.c
   * contrib/gtwvg/gtwvg.c
   * contrib/rddads/adsfunc.c
   * contrib/rddads/ads1.c
   * contrib/hbbmcdx/bmdbfcdx.c
   * contrib/examples/pp/hbppcomp.c
     * hb_strncpy()/hb_strncat() size parameter changed from 
       CONSTANT to 'sizeof( dest ) - 1', where applicable.
     ! hbct/VOLUME() buffer overrun fixed.
     ; NOTE: dbfntx1.c has a couple of places where I wasn't 
             sure of the intention, so I left them unchanged.
2008-08-24 11:21:08 +00:00
Viktor Szakats
a47418cddd 2008-08-13 03:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed one possible minor bug (synced from gtwvg.c), 
       when pressing the mouse button for mark&select.

   * contrib/hbodbc/odbc.c
     ! Fixed some compile errors for __DMC__.
     ; TOFIX: Some more remain.
       ../../odbc.c(517) : Error: undefined identifier 'SQL_IS_INTEGER'
       ../../odbc.c(525) : Error: undefined identifier 'SQLSetStmtAttr'
       ../../odbc.c(536) : Error: undefined identifier 'SQLGetConnectAttr'
       ../../odbc.c(549) : Error: undefined identifier 'SQLGetStmtAttr'

   * contrib/gtwvg/gtwvg.c
   * contrib/gtwvg/gtwvg.h
     ! Synced (to some extent) with gtwvt.c, so that it now 
       also compiles with __DMC__.
     ! Fixed a some more compile errors for __DMC__.
     ; TOFIX: Some more remain.
       ../../wvgutils.c(356) : Error: undefined identifier 'TTM_SETMARGIN'
       ../../wvgutils.c(367) : Error: undefined identifier 'TTM_GETMAXTIPWIDTH'
       ../../wvgutils.c(371) : Error: undefined identifier 'TTM_SETMAXTIPWIDTH'
       ../../wvgutils.c(385) : Error: undefined identifier 'TTM_GETTIPBKCOLOR'
       ../../wvgutils.c(389) : Error: undefined identifier 'TTM_SETTIPBKCOLOR'
       ../../wvgutils.c(402) : Error: undefined identifier 'TTM_GETTIPTEXTCOLOR'
       ../../wvgutils.c(406) : Error: undefined identifier 'TTM_SETTIPTEXTCOLOR'
       ../../wvgutils.c(761) : Error: undefined identifier 'UINT_PTR'
       ../../wvgutils.c(1296) : Error: undefined identifier 'LONG_PTR'
       ../../wvgutils.c(1297) : Error: undefined identifier 'ul'

   * config/w32/dm.cf
     ! Fix missed from previous commit added.
     * Added -x C compiler switch.
2008-08-13 01:51:45 +00:00
Przemyslaw Czerpak
22d11af751 2008-08-13 03:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
    ! use HB_PTRDIFF for handle to number casting
2008-08-13 01:25:23 +00:00
Viktor Szakats
9baaa07952 2008-08-13 01:11 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/whatsnew.txt
     * Extended releases notes/issues section.

   * config/w32/dm.cf
     ! Fixed to exclude "possible extraneous ';'" warnings 
       for every for()/while()/etc constructs with an empty body.
     ! Further fixes to link/lib rules.
     ; TOFIX1: odbc.c, gtwvg.c still don't compile.
     ; TOFIX2: Harbour executables won't run, by simply doing nothing.

   * source/rtl/gtwvt/gtwvt.c
     ! Fixed to compile with __DMC__.
     ; NOTE: Przemek, could you please check these?

   * include/hbsetup.h
     ! snprintf() for __DMC__.
     
   * contrib/hbw32/dllcall.c
     ! Fixed casting for __DMC__.

   * contrib/hbsqlit3/hbsqlit3.c
     ! Workaround for Pelles C 4.5 and Open Watcom, so that 
       sqlite3.c won't be included for these compilers.
       Pelles C 4.5 crashes, Open Watcom 1.7 goes into an 
       infinite loop on this huge file. For thes compilers 
       the sqlite3 library should be supplied by the users.

   * contrib/hbapollo/apollo.c
     ! Fixed to compile with Open Watcom.

   * source/vm/mainwin.c
   * source/vm/hvm.c
     ! Fix for __DMC__ startup problem:
       'OPTLINK : Warning 134: No Start Address'
2008-08-12 23:12:36 +00:00
Przemyslaw Czerpak
990ac68465 2008-08-12 22:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/w32/dm.cf
    * updated for central library directory used by Harbour - not tested

  * harbour/config/w32/xcc.cf
    ! fixed include PATH in XCC builds - Viktor be carefull with
      cleaning -I<path> parameter. Some compilers use different
      rulles then the one you may expect using the most popular
      ones and such operation will break compilation. F.e. XCC
      seems to ignore source file location for releative paths
      so in GNU make builds it's necessary to add "-I$(TOP)"
      instead of "-I." and when included file starts with ".."
      then it does not try to use it with paths set by -I option
      so we need -I$(TOP)$(ROOT) and hard coded for this compiler
      directories in include/hbregex.h and include/hbzip.h

  * harbour/source/hbzlib/zutil.h
    ! do not use fdopen() with XCC - it does not support it

  * harbour/contrib/examples/pp/pp.c
  * harbour/contrib/examples/pp/hbppcore.c
  * harbour/source/common/hbfsapi.c
  * harbour/source/rtl/fnsplit.c
  * harbour/source/rtl/fstemp.c
    ! always use _POSIX_PATH_MAX + 1 buffers

  * harbour/source/compiler/gencobj.c
    * extended line buffer size

  * harbour/source/rtl/gtcrs/gtcrs.h
    * removed unnecessary declaration for _POSIX_PATH_MAX
      it's always defined in Harbour header files

  * harbour/source/rtl/inkey.c
  * harbour/source/rtl/hbinet.c
  * harbour/source/rtl/gtwvt/gtwvt.c
    * use hb_array[SG]et*() functions insteaf of
      hb_item*( hb_arrayGetItemPtr, ... )
2008-08-12 20:50:38 +00:00
Przemyslaw Czerpak
98e79a7e2f 2008-08-08 00:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    + recognize -mwindows -mconsole MinGW-GCC switches and update
      library list for them

  * harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    + added support HB_SET{TERM|DISP|KEY}CP() in non Unicode builds
2008-08-07 22:30:53 +00:00
Viktor Szakats
7f4d09c082 2008-07-30 03:31 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed one MSVC 64 bit warning.
2008-07-30 01:31:40 +00:00
Viktor Szakats
8bdb46266a 2008-07-30 01:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed recent MSVC warning. Please test on WinCE/pre-1200 
       MSVC versions.
2008-07-29 23:15:54 +00:00
Przemyslaw Czerpak
6058ac88f0 2008-07-22 12:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
    * disabled SetWindowLongPtr() in 32bit MSVC WinCE builds

  * harbour/source/rtl/hbffind.c
    * minor cleanup.

  * harbour/source/rtl/filesys.c
    + implemented hb_fsGetAttr() and hb_fsGetFileTime() for DOS, MS-Win,
      OS2 and *nixes. Please test it on different platforms.
2008-07-22 10:30:50 +00:00
Przemyslaw Czerpak
7fbbdaa5a0 2008-07-22 10:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.h
    * added yet another one MSVC-WinCE missing definition
2008-07-22 08:36:27 +00:00
Przemyslaw Czerpak
092dcdb693 2008-07-21 21:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.h
    * added some definitions which seems to be missing in some MSVC-WinCE
      versions

  * harbour/source/rtl/gtwvt/gtwvt.c
    * cleaned SetWindowLongPtr()/SetWindowLong() usage so now all calls
      are protected by the same #if condition
2008-07-21 19:54:54 +00:00
Pritpal Bedi
472013f959 2008-07-12 16:12 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* source/rtl/gtwvt/gtwvt.c
    * #if defined(_MSC_VER) and (_MSC_VER >= 1200) => 
      #if defined(_MSC_VER) && (_MSC_VER >= 1200)
    *#elif  =>  #else
     
     /* JF Please check with BCC also */
2008-07-12 23:16:21 +00:00
Jean-Francois Lefebvre
b2925bd75d 2008-07-11 19:52 UTC+0200 JF Lefebvre (MAFACT) (jfl/at/mafact.com) 2008-07-11 17:53:49 +00:00
Jean-Francois Lefebvre
0159cc03e3 2008-07-11 18:20 UTC+0200 JF Lefebvre (MAFACT) (jfl/at/mafact.com) 2008-07-11 16:34:23 +00:00
Marek Paliwoda
1e9fb98568 2008-07-09 12:05 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl) 2008-07-09 10:03:30 +00:00
Viktor Szakats
8735002f43 2008-07-09 10:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
   * contrib/gtwvg/gtwvg.c
     ! Restored previous change.
       In Harbour, passing NULL to hb_itemPutC() is valid and 
       will result in an empty string being stored in an optimized way.
       hb_itemPutCLPtr() should be used instead of hb_itemPutCPtr().
       The GPF in question used to happen when setting the clipboard, 
       and it looks to happen inside the OS. I'm still investigating.

   * contrib/hbapollo/tests/bld_b32.bat
   * contrib/hbapollo/tests/bld_vc.bat
     ! Fixed external .lib name.
2008-07-09 08:02:03 +00:00
Pritpal Bedi
80f2c9b417 2008-07-08 16:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/gtwvg/gtwvg.c
  * source/rtl/gtwvt/gtwvt.c
    ! Fixed GPF in HB_GTI_CLIPBOARDDATA.
2008-07-08 23:45:10 +00:00
Viktor Szakats
060300e356 2008-07-02 23:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Removed unused variable.
2008-07-02 21:45:28 +00:00
Pritpal Bedi
39bdab02ce 2008-07-02 14:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/gtwvg/gtwvg.c
  * source/rtl/gtwvt/gtwvt.c
    ! Changed the wat EXIT procedure works.
    ; The change is provided by Ron Pinkas so I have implemented as is.
      Before also I was not finding any problems on Harbour but 
      appln was GPFing on Exit with GTWVG.
    ; TOCHECK: Viktor see if it resolves the EXIT problem you are reporting
2008-07-02 21:38:06 +00:00
Viktor Szakats
6a18638c94 2008-07-02 18:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbzipnew.cpp
     ! Two lines commented by mistake now reenabled.
       Thanks Miguel.

   * source/rtl/gtwvt/gtwvt.c
     * Minor naming, formatting.
2008-07-02 16:53:13 +00:00
Przemyslaw Czerpak
a9d571c735 2008-07-02 11:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/Makefile
  * harbour/contrib/xhb/common.mak
  - harbour/contrib/xhb/hbchksum.c
    * removed HB_CHECKSUM() code - it's not necessary

  * harbour/contrib/xhb/xhbfunc.c
    + redirected HB_CHECKSUM() to HB_ADLER32()

  * harbour/source/rtl/gtwvt/gtwvt.c
    ! fixed WINCE builds. It was only for MiGWCE which partially emulates
      GetSystemMenu() but probably other builds will report that this
      function is missing.
      If possible please test if current Harbour application can be
      executed in real WinCE environment.

  * harbour/make_deb.sh
    * updated contrib library list

  * harbour/contrib/hbmysql/mysql.c
    ! fixed compilation for older MYSQL versions

  * harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvgutils.c
    ! fixed UNICODE builds

  + harbour/config/none.cf
    + added dummy header file for GNU make to avoid errors on unsupported
      platforms

  * harbour/contrib/hbw32ddr/Makefile
  * harbour/contrib/hbmysql/Makefile
  * harbour/contrib/hbodbc/Makefile
  * harbour/contrib/hbwhat32/Makefile
  * harbour/contrib/hbtpathy/Makefile
  * harbour/contrib/hbw32/Makefile
  * harbour/contrib/hbole/Makefile
  * harbour/contrib/hbapollo/Makefile
  * harbour/contrib/hbfbird/Makefile
  * harbour/contrib/hbziparch/Makefile
  * harbour/contrib/hbcurl/Makefile
  * harbour/contrib/hbhpdf/Makefile
  * harbour/contrib/rddado/Makefile
  * harbour/contrib/gtwvg/Makefile
  * harbour/contrib/hbpgsql/Makefile
  * harbour/contrib/rddads/Makefile
  * harbour/contrib/hbfimage/Makefile
  * harbour/contrib/hbgd/Makefile
  * harbour/contrib/hbgf/hbgfw32/Makefile
  * harbour/contrib/hbgf/hbgfos2/Makefile
  * harbour/contrib/hbgf/hbgfgtk/Makefile
  * harbour/contrib/hbtip/Makefile
  * harbour/contrib/hbbmcdx/Makefile
    * updated to not generate errors for unsupported builds
2008-07-02 09:57:58 +00:00
Viktor Szakats
213b5c33d3 2008-07-01 22:10 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
   * contrib/gtwvg/gtwvg.c
     ! Fixed MSVC warnings.
2008-07-01 20:11:23 +00:00
Viktor Szakats
8c358ccf16 2008-06-26 11:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
     * Changed version information layout:
       "Harbour a build x.y-z" -> "Harbour x.y.za" format.

   * contrib/gtwvg/gtwvg.c
     ! Fixed compile error. (commented line, please check this code)
       [ pGT->iLocalGTHandle = pWVT->iHandle; ]

   * contrib/gtwvg/wvtutils.c
   * contrib/gtwvg/wvtcore.c
   * contrib/gtwvg/wvtpaint.prg
   * contrib/gtwvg/wvtclass.prg
     % hb_arraySet( ..., hb_itemPut*() ) -> hb_arraySet*( ... )
     * if() -> iif()
     * != on strings to IS*() macros.
     ; TODO: I'd suggest to change "WVT" references to "WVG" 
             to avoid confusion with core WVT. At least in those places
             which wouldn't break compatibility (like source names).
             If there is no objection I can do it.

   * source/rtl/gtwvt/gtwvt.c
     * Minor cleanup.
2008-06-26 09:27:42 +00:00
Viktor Szakats
d474d7c763 2008-06-25 11:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     * Slightly changed the way CLOSE button works.
       Now the close button, if enabled, will always 
       force a shutdown. So this setting is made independent 
       of SetCancel(). I choose this because there might 
       be cases when we need to use <Alt+C> in app code, yet 
       we want to allow closing the window. Previously it was 
       also easy to create confusing scenarios by using various 
       combinations of HB_GTI_CLOSABLE + SetCancel(). Another 
       kind of fix - without the advantage above - would be 
       to fully sync SetCancel() with HB_GTI_CLOSABLE.

   * contrib/hbtpathy/tplinux.c
     ! Fixed embedded comments in Linux code.

   * contrib/hbziparch/hbziparc.h
     ! Fixed header casing.
2008-06-25 09:55:33 +00:00
Viktor Szakats
3325a0ed81 fix to prev 2008-06-21 22:31:01 +00:00
Viktor Szakats
c5535273bc 2008-06-21 23:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     - Removed HB_NOSTARTUPWINDOW link time GTWVT window 
       hiding option.
     ; For the same effect, but with the advantage that the 
       screen output won't slow the application at all, and 
       that behaviour is controllable from the command line 
       and/or at link time, please use gtgui.lib.
       With GTGUI the application window is neither created 
       nor updated, while GTWVT will create the window, 
       update the window, but it will be fully invisible with 
       no way to unhide. Clipboard and sound generation works 
       in both cases.
       For 100% similar end-user experience as the old hack:
         - link gtgui.lib
         - replace ANNOUNCE HB_NOSTARTUPWINDOW with 
                   ANNOUNCE HB_GT_GUI_DEFAULT
         - add REQUEST HB_GT_GUI
       to your application.

   * contrib/hbwhat32/whatutil.prg
   * contrib/hbwhat32/wincomm.prg
   * contrib/hbwhat32/wincore.prg
   * contrib/hbwhat32/windebug.prg
   * contrib/hbwhat32/winerror.prg
   * contrib/hbwhat32/winini.prg
   * contrib/hbwhat32/winrbar.prg
   * contrib/hbwhat32/wintabs.prg
   * contrib/hbwhat32/wintbar.prg
     * Some .prg level code cleanup. (= operators, 
       if(), <> -> !=). No actual problem found.
2008-06-21 22:18:09 +00:00
Viktor Szakats
2c2595aa58 2008-06-21 22:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtalleg/gtalleg.c
   * source/rtl/gtgui/gtgui.c
   * source/rtl/gtwin/gtwin.c
   * source/rtl/gtwvt/gtwvt.c
   * source/rtl/gtxwc/gtxwc.c
     * Changed some GT names to more descriptive, uniform ones 
       and leaving "win32" (it can be win64 too):

       "Win32 buffered console                  -> "Windows native console"
       "Win32 buffered WVT"                     -> "Windows GUI console (WVT)"
       "Strep GT driver for W32 GUI programs"   -> "Windows dummy console for GUI programs"
       "XWindow Console XWC"                    -> "XWindow GUI console (XWC)"
       "Multiplatform Allegro graphics console" -> "Portable Allegro GUI console"
2008-06-21 20:26:43 +00:00
Viktor Szakats
66ffe8d97e 2008-06-20 21:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     + Refreshing whole screen after palette change.
       This replaces the previous method which had some 
       side effects.

   * source/vm/fm.c
   * source/vm/extrap.c
     * Changed "Harbour" to "Application" in user visible 
       screen/log messages.

   * contrib/hbwhat32/_winfont.c
     ! Fixed typo in previous commit.
2008-06-20 19:19:00 +00:00
Viktor Szakats
367c44a3df 2008-06-20 15:07 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Removed PutChar override. This was added along the 
       palette support, but I'm afraid we'll need to find 
       an alternative solution, as this change caused an 
       huge amount flickering on every screen update, 
       essentially nilling all screen change buffering 
       efforts.
     ; TOFIX: Solve realtime palette change in an 
              alternative way.
2008-06-20 13:09:19 +00:00
Viktor Szakats
da1bea3d74 2008-06-19 11:23 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Avoid using the "Windows" word in public message.
2008-06-19 09:24:54 +00:00
Viktor Szakats
c6bbd0eacb 2008-06-18 11:39 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtclip.c
     ! hb_gt_w32_setClipboard() fix to CF_UNICODETEXT 
       EOS char setting.
       [TOMERGE RC1]

   * source/rtl/gtwvt/gtwvt.c
     + Internal error string cleanup.
2008-06-18 09:41:03 +00:00
Viktor Szakats
09901b9505 2008-06-18 10:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* 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.
       [TOMERGE RC1]
2008-06-18 08:10:49 +00:00
Viktor Szakats
1d0e0dee30 2008-06-17 18:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* 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.
       [TOMERGE RC1 if correct]

   * source/rtl/gtwvt/gtwvt.c
     * "HARBOUR_WVT" -> "Harbour WVT". This text is visible, 
       so it's better to make it "desktop friendlier"".
       [TOMERGE RC1]
2008-06-17 16:54:05 +00:00
Viktor Szakats
9f76180566 2008-06-16 01:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/set.ch
   * include/hbset.h
   * source/rtl/set.c
   * source/vm/fm.c
   * source/vm/extrap.c
     + Added: Set( _SET_HBOUTLOG[, <cFileName>] ) -> <cOldFileName>
       Default value: "hb_out.log"
       This replaces hb_fm.log and hb_ex.log, and makes it possible 
       for the applications to control the filename where these 
       internal Harbour outputs are written to.

   * source/rtl/gtwvt/gtwvt.c
     % Minor redundancy removed.
2008-06-15 23:48:53 +00:00
Viktor Szakats
f06fef5968 2008-06-13 20:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.h
   * source/rtl/gtwvt/gtwvt.c
     ! Sorted out SELECTCOPY menu text and Unicode.
2008-06-13 18:02:31 +00:00
Viktor Szakats
e708033e0e 2008-06-13 19:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.h
   * source/rtl/gtwvt/gtwvt.c
   * tests/wvtext.prg
     + Added hb_gtInfo( HB_GTI_SELECTCOPY, <cMenuText> )
       to set the menu text ("Mark and Copy" on startup).
       cMenuText mustn't be zero length. Setting the menu text 
       also enables select&copy automatically. The call 
       will return the previously set menu text. To get 
       the menu text without setting a new one, use: 
       hb_gtInfo( HB_GTI_SELECTCOPY, "" )
       This is good if someone wants to adapt the menu 
       text to the OS's or app's language.

   * doc/en/hb_apiit.txt
   * include/hbapi.h
   * include/hbapiitm.h
   * source/rtl/gtwin/gtwin.c
   * source/rtl/hbgtcore.c
   * source/rtl/gtgui/gtgui.c
   * source/rtl/gtwvt/gtwvt.c
   * source/vm/macro.c
   * source/vm/debug.c
   * source/vm/itemapi.c
   * source/vm/hvm.c
   * source/vm/arrays.c
   * source/vm/extend.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/sdf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/delim1.c
   * source/rdd/dbf1.c
   * source/rdd/dbffpt/dbffpt1.c
   * contrib/hbw32/w32_ole.c
   * contrib/gtwvg/gtwvg.c
   * contrib/rddads/ads1.c
   * contrib/hbmisc/spd.c
   * contrib/hbbmcdx/bmdbfcdx1.c
   * contrib/examples/rdddbt/dbfdbt1.c
     * I did a mistake in 1999 by giving the name hb_itemPutCPtr() 
       to the function which would have to be correctly named 
       hb_itemPutCLPtr() (notice the 'L' for 'length').
       So, now this was renamed to hb_itemPutCLPtr(), and stub was 
       added with the old name, and Harbour code was changed to use 
       the new one. I've also added hb_itemPutCPtr2() as a version 
       not requiring len parameter, the proper name would be hb_itemPutCPtr() 
       for this, but we cannot use without breakin compatiblity.

       IMPORTANT: I'd strongly suggest all 3rd parties to update 
       their code to use the call hb_itemPutCLPtr() instead of 
       hb_itemPutCLPtr().

       The final goal would be to have hb_itemPutCPtr() with two 
       parameters instead of the hakish looking hb_itemPutCPtr2().

       I'd welcome any opinions how to reach this goal. I didn't want to 
       break compatiblity with 3rd parties this time, but IMO we may do 
       it in 1.1, or even before 1.0.

     ! The above also fixes the (potential) problem when hb_retc_buffer()'s 
       szText parameter was evaluated twice if HB_API_MACROS was #defined.
2008-06-13 17:26:48 +00:00
Pritpal Bedi
2887345150 2008-06-14 06:18 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/source/rtl/gtwvt/gtwvt.c
     ! Replaced min()/max() functions with HB_MIN()/HB_MAX() macro.
2008-06-13 13:19:57 +00:00
Viktor Szakats
bcee7bcc8e 2008-06-13 13:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed window trashing for tall/wide windows where the 
       content cannot fill the entire window client area.
     ; There is still a great amount of flickering, while doing 
       the resize. I wonder if there is any solution for this 
       besides turning off full-content drag/resize. Anyways 
       it's only really bad when trying insane sizes, so it's 
       not a big problem for normal usage.
2008-06-13 11:58:44 +00:00
Pritpal Bedi
0e10355833 2008-06-13 22:24 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtwvt/gtwvt.h
     * Minor cleanups.
2008-06-13 05:25:52 +00:00
Pritpal Bedi
b7919d4290 2008-06-13 21:56 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/source/rtl/gtwvt/gtwvt.c
     ! Fixed selection of left most column and top row.
2008-06-13 04:52:48 +00:00
Pritpal Bedi
8520cab552 2008-06-13 10:56 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtfunc.c
   * harbour/include/hbapigt.h
     + Added Palette implementation by color index.
       Hb_GtInfo( HB_GTI_PALETTE, nIndex[, nNewRGB ] ) -> nOldRGB
   
   * harbour/tests/wvtext.prg
     * Updated to demonstrate above functionality.
2008-06-12 18:01:04 +00:00
Pritpal Bedi
8d4e65a1a0 2008-06-13 09:12 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/include/hbgtinfo.ch
     + Added functionality to change Palette. 
       Hb_GtInfo( HB_GTI_PALETTE, aNewPalette ) -> aOldPalette
       <aNewPalette> must be of 16 elements containg RGB colors.

   * harbour/tests/wvtext.prg
     * Updated to demonstrate palette info.
     ; TODO : Hb_GtInfo( HB_GTI_PALETTEBYINDEX, nIndex[, nNewRGB ] ) -> nOldRGB
       Needs deeper modifications in GT core. Needs additional parameter 
       in core setup. Will commit today.
2008-06-12 16:21:57 +00:00
Viktor Szakats
704fe9b6d7 2008-06-12 11:02 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     % Minor optimization in new screen marking code.

   * contrib/hbmisc/strfmt.c
     * Cleanup, optimization, some internal limits removed.

   * contrib/hbmisc/spd.c
     * Former _SPD() function renamed to SQL_SPRINTF()
2008-06-12 09:36:54 +00:00
Pritpal Bedi
cbab994f5c 2008-06-12 00:40 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com
* harbour/source/rtl/gtwvt/gtwvt.c
     ! Completely removed flickering under Mark and Copy operation
       without lengthy calculations. Forwarded by Andy Wos - thanks.
     ; Viktor, now first row and column are being selected.
       When right < left only then first column is not accessible
       but it is very rare in practical application.
2008-06-12 07:46:03 +00:00
Viktor Szakats
20e30d5824 2008-06-12 01:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed remaining Mark&Copy trashing while doing the selection.
     * I've undone fix (2008-06-09 14:48 UTC+0800) for non-selectable 
       maxrow/maxcol, since after the fix the _first_ row/col couldn't 
       be selected.
       TOFIX: Reopened.
2008-06-11 23:50:25 +00:00
Pritpal Bedi
c04afe2af3 2008-06-11 12:30 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtwvt/gtwvt.h
   * harbour/include/hbgtinfo.ch
     + Added HB_GTI_CLOSABLE
       Hb_GtInfo( HB_GTI_CLOSABLE, TRUE|FALSE ) -> lPrevState
       TRUE enables the "X" button, FALSE disbles it.
     + Added functionality to respond to WM_CLOSE message. 
       If application returns 1 then application is exited.
    
   * harbour/tests/wvtext.prg
     + Added functionality to demonstrate above feature.
2008-06-11 19:35:37 +00:00
Viktor Szakats
0a4b1fcdb6 2008-06-11 19:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbgtinfo.ch
   * source/rtl/gtwvt/gtwvt.c
     ! Fixed stupid typo from me. This is why maximized size 
       didn't want to get right.
     ! Fixed to not reposition non-maximized windows while 
       resizing them and their top/left corner was off screen.
     ! Fixed to not allow font screen below a certain limit 
       (3x4 pixels). This fixes some of the more obvious cases 
       when window gets trashed.
     ! Fixed to not resize the windows when toggling the 
       resizing feature using HB_GTI_RESIZABLE.
     + Added to disable maximize icon after maximizing and 
       reenable it on the first resize attempt.
     - Removed TIMER related stuff as it's very difficult 
       (or impossible) to support on other platforms.
       Timer support could be added to hbw32.lib, though.
     * Some cleanups.
     ; Remaining TOFIXes:
       - Window trashing when settling on a size which 
         cannot be properly filled with the console. Try with 
         vertically or horizontally narrow window shapes.
       - Mark&Copy is still trashing when swapping directions 
         with the selection compared to the starting position.

   * tests/wvtext.prg
     ! Added missing SVN keywords properties.
     ! Added missing SVN eol property.
     ! Fixed to use the default font to have a more common 
       ground for testing.
     + Added markers to the corners to easily spot chopped 
       borders.

   * contrib/xhb/Makefile
   * contrib/xhb/common.mak
     - Removed some xhb specific non-standard headers from 
       the list of those getting installed to the Harbour central 
       include dir. Only hbcompat.ch, hbcompat.h and xhb.ch 
       goes now to the official include dir. After this change 
       has been merged with RC1, xhb.lib may be included in 
       the default build.
       [TOMERGE RC1]

   * contrib/hbw32/tests/testdll.prg
     + Added some more DLL calling samples.
2008-06-11 17:39:35 +00:00
Przemyslaw Czerpak
73c9510cbc 2008-06-11 16:22 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbw32/dllcall.c
    * added casting of wOrdinal to HB_PTR_DIFF to avoid waring
    * disabled asm code for WIN64 builds
    * disabled asm code for WINCE builds
    * disabled some code which breaks WINCE builds
    ; TODO: add support for WINCE/ARM and WIN64

  * harbour/source/rtl/gtwvt/gtwvt.c
    ! always use literal strings inside TEXT() macro for UNICODE builds
2008-06-11 14:22:50 +00:00