Commit Graph

24 Commits

Author SHA1 Message Date
Viktor Szakats
1b4008723b 2012-01-06 16:13 UTC+0100 Viktor Szakats (harbour syenar.net)
* ChangeLog
  * (whole tree)
    * changed e-mail address
2012-01-06 15:28:23 +00:00
Viktor Szakats
7ad3481808 2011-12-24 03:32 UTC+0100 Viktor Szakats (harbour syenar.hu)
* ChangeLog
  * (whole tree)
    * removed obsolete antispam measure from my e-mail address
2011-12-24 02:47:24 +00:00
Viktor Szakats
23dd5b134d 2010-06-19 09:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
    ! Minor to prev.

  * include/hbapi.h
  * src/vm/extend.c
    + Added hb_parnsize(), hb_retnsize(), hb_stornsize() functions.
    ; NOTE: These should be used in place of hb_parnl(), hb_retnl(),
            hb_stornl() when passing HB_SIZE types.
    ; TODO: Use them all accross Harbour if they are correct and
            after being finalized.

  * src/vm/itemapi.c
    + Added hb_itemGetNSize(), hb_itemPutNSize() functions.
    * DATETIME stuff in hb_itemGetNL() marked as HB_LEGACY_LEVEL3.
    ; QUESTION: It's marked as to be deleted in the TODO, so maybe we should
                rather delete it.

  * include/hbapiitm.h
  * src/rtl/filesys.c
    + hb_fsReadAt(), hb_fsWriteAt(): Added support for Win64 HB_SIZE.
    ; QUESTION: I assume these functions have the purpose of being
                atomic seek + read without moving the file pointer,
                which means current modification isn't safe. How
                can this be solved given Windows doesn't seem to have
                64-bit read/write API calls?
    ! Fixed old copy-paste typos in Windows OVERLAPPED initialization,
      where the lines were ended with command instead of semicolon,
      they didn't cause any harm though in their former location.
    % Reverted a minor change from prev commit to make it
      possibly a little bit faster, like it was before.

  * src/rtl/hbzlib.c
    + Added casts (at external interface calls) and other fixes to
      make it build for Win64 without warnings.

  * src/rdd/dbfntx/dbfntx1.c
  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbffpt/dbffpt1.c
  * contrib/rddbmcdx/bmdbfcdx.c
    * HB_ULONG -> HB_SIZE where appropriate to avoid Win64 errors
      and some warnings. I'm still not comfortable to touch this
      code, but it could certainly need a type cleanup.

  * include/hbdefs.h
    + Added HB_PFS macro which holds the printf() format string
      for HB_SIZE value.
    ; TODO: Use it all accross Harbour.

  * contrib/hbmysql/mysql.c
  * contrib/sddmy/sddmy.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbcurl/hbcurl.c
  * contrib/hbhpdf/harupdf.c
  * contrib/hbpgsql/postgres.c
  * contrib/rddads/adsfunc.c
  * contrib/rddads/ads1.c
  * contrib/hbfimage/fi_wrp.c
  * contrib/sddodbc/sddodbc.c
  * contrib/hbgd/gdwrp.c
  * contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/win_bmp.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_regc.c
  * contrib/hbssl/evpciph.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/evpenc.c
  * contrib/hbssl/pem.c
  * contrib/hbssl/rand.c
  * contrib/hbssl/evp.c
    + Added necessary casts at external component boundaries to
      make Win64 builds warning-free.

  * contrib/hbct/ctstrfil.c
    + HB_ISIZ -> HB_FOFFSET, hb_fsSeek() usage, other type cleanup
      to handle file offsets correctly.

  * contrib/xhb/hbnxs.h
  * contrib/xhb/hbcrypt.c
    ! Fixed warnings for Win64.

  * contrib/hbwin/win_prn3.c
  * contrib/xhb/dbf2txt.c
  * contrib/xhb/fparse.c
    * int -> HB_ISIZ for Win64.

  * contrib/xhb/freadlin.c
    * hb_fsSeek() -> hb_fsSeekLarge().

  * contrib/sddfb/sddfb.c
    * Minor type cleanup to make Win64 warning-free.

  * contrib/hbsqlit3/hbsqlit3.c
    + Added necessary casts at external interface calls.
    % Deleted one dummy operation from SQLITE3_FILE_TO_BUFF().

  * contrib/rddsql/sqlmix.c
  * contrib/rddads/adsx.c
    * HB_ULONG -> HB_SIZE.

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgcuig.c
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgcore.c
    ! int -> HB_ISIZ/HB_SIZE
    + Added necessary casts at external component boundaries to
      make Win64 warning-free.

  * contrib/rddads/ads1.c
    * HB_ULONG -> HB_SIZE

  * contrib/hbtip/utils.c
    * int -> HB_ISIZ
    ! Fixed to use HB_FOFFSET type to save/restore file position.

  * ChangeLog
    + Added missing item to previous log entry:
      ! Fixed hb_fsCurDirBuff() for Win64.

  ; It's quite large commit, nevertheless I'd highly appreciate
    peer review, and certainly there will be places which need
    better or different solution for Win64.
2010-06-19 08:05:24 +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
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
Viktor Szakats
ab0e53cbe1 2010-04-22 18:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/gtwvg/Makefile
  * contrib/hbwin/Makefile
    + Enabled WIN32_LEAN_AND_MEAN mode.

  * contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/wapi_shellapi.c
  * contrib/hbwin/win_shell.c
    ! Fixed to build in WIN32_LEAN_AND_MEAN mode.
2010-04-22 16:30:14 +00:00
Viktor Szakats
2738a75104 2010-02-18 10:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extrap.c
    + Added ARM CPU dump code.
    + Added placeholder for CE/MIPS/SH CPU dump code.
    + Added iTODO warnings for non-implemented code sections.
    + Tweaked and enabled module listing code for WinCE.
    ; TOFIX: UNICODE conversion is missing from there.
    ; TODO: Enable exception handler for WinCE. How?

  * contrib/hbwin/wapi_wingdi.c
    ! Typo in recent addition.

  * utils/hbmk2/hbmk2.prg
  * config/wce/msvcarm.mk
    * Raised warning level for old msvcarm targets to -W3 (from -W2)
2010-02-18 09:29:53 +00:00
Viktor Szakats
25f798a89c 2010-02-17 13:19 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
    + WAPI_TEXTOUT(): Emulating functionality on WinCE platform, 
      so it's now available also on WinCE.

  * contrib/hbwin/win_prn1.c
    * Formatting.
2010-02-17 12:19:23 +00:00
Viktor Szakats
b34091f0d7 2010-02-17 13:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
    ! Typo in recent commit.
2010-02-17 12:14:03 +00:00
Viktor Szakats
4cffc42648 2010-02-17 11:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbwince.c
  * include/hbwince.h
    ! Added abort() declaration and implementation
      for poccarm and old msvcarm targets.

  * contrib/hbwin/win_bmp.c
    + Enabled for WinCE: WIN_BITMAPDIMENSIONS()

  * contrib/hbwin/win_bmpd.c
    + All functions enabled for WinCE.

  * contrib/hbwin/win_prn1.c
    + WIN_TEXTOUT() changed to always use ExtTextOut() internally,
      so that it work on WinCE. (it's also faster)
    + WIN_CREATEFONT() changed to use CreateFontIndirect() which
      also works for WinCE.

  * contrib/hbwin/wapi_wingdi.c
    + Added WAPI_CREATEFONTINDIRECT(), which always works on both
      Windows and WinCE.

  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/wapi_wingdi.c
    + All functions enabled for WinCE. The ones not available
      on WinCE, will return permanent error.

  * contrib/hbwin/legacycd.c
    ! Added missing WinCE header after previous commit.
2010-02-17 10:41:33 +00:00
Viktor Szakats
21ad108baf 2010-02-11 12:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
    ! Fixed return value of WAPI_SELECTOBJECT() again.
2010-02-11 11:37:58 +00:00
Viktor Szakats
ace8a29b7b 2010-02-11 12:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/direct.c
    * int -> HB_SIZE

  * contrib/hbwin/wapi_wingdi.c
    ! Fixed return value of WAPI_SELECTOBJECT()

  * contrib/hbwin/tests/testdll.prg
    + Minor.

  * contrib/hbwin/win_dll.c
    ! Fixed typo in byref parameter handling. Thanks to
      Xavi for noticing it.
    * Deleted unused union members from win32 retval support, 
      renamed the rest.

  * utils/hbmk2/hbmk2.prg
    + Added -3rd= option. This is always ignored by hbmk2 and it
      allows to store extra, non-hbmk2 information in hbmk2 make files.
      F.e.: -3rd=-hbide_friendlyname=MyProject
2010-02-11 11:33:10 +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
4b7dad32fe 2010-01-23 14:05 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwapi.h
  * contrib/hbwin/wapi_alloc.c
  * contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/tests/testgdi.prg
    + Reworked the way DEVMODE structure is handled. As many winapi
      interfacing methods, this is also a strange beast, it contains
      some hidden information, so it must be created using some
      winapi calls. I finally settled with these three functions
      to handle DEVMODE structure from .prg level:
         __WAPI_DEVMODE_NEW( <cPrinterName> ) => <pDEVMODE>
         __WAPI_DEVMODE_SET( <pDEVMODE>, <hashToWriteFrom> )
         __WAPI_DEVMODE_GET( <pDEVMODE>, <hashToReadInto> )
      Then <pDEVMODE> can be passed to WAPI_CREATEDC() and WAPI_RESETDC().
      Remember to recreate <pDEVMODE> after using __WAPI_DEVMODE_SET()
      and before using __WAPI_DEVMODE_GET() to refresh the structure
      content with actual device settings.
2010-01-23 13:05:50 +00:00
Viktor Szakats
e37d3cfa86 2010-01-22 18:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
    - Dropped array support for DOCINFO parameter.
    ; Array has only any point for really simple/obvious structures
      like point and rect, for anything more complicated hash is
      a much convenient answer (don't have to remember structure
      member positions, can pass them in any order and combination,
      and MSDN docs can be used when coding .prg for Windows).

  * contrib/hbwin/tests/testgdi.prg
    % Inlined DOCINFO hash parameter syntax.
2010-01-22 17:28:38 +00:00
Viktor Szakats
b6fbba81d8 2010-01-22 17:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwapi.h
  * contrib/hbwin/wapi_wingdi.c
    ! Fixed potential GPD in hbwapi_par/stor*() functions
      when parameter was not passed at all.
    + Added hbwapi_par_DOCINFO() and hbwapi_strfree_DOCINFO()
      pairs to retrieve structures with strings in them.
      Hashes are supported now as well.
    ; TODO: Low-level string handling functions will GPF
            yet if the related hashes are missing (f.e. in
            posted test code). This requires proposed extra
            guards in low-level string functions.
    + WAPI_STARTDOC() changed to use hbwapi_par_DOCINFO().
    % Minor cleanup in WAPI_SELECTOBJECT().

  + contrib/hbwin/tests/testgdi.prg
    + Added test code for GDI function structure parameter exchange.

  * contrib/hbide/idethemes.prg
  * contrib/hbide/ideeditor.prg
    + Added 'sequence' and 'endsequence' to keywords.
    ; TOFIX: try/catch and a few more are not Harbour keywords.

  * contrib/hbide/ideeditor.prg
    % Optimized low-level keyword lookup functions:
      - Use hashes instead of arrays and ascan.
      - Use STATIC vars to avoid rebuilding tables on every call.
2010-01-22 16:29:38 +00:00
Viktor Szakats
a93731df1b 2010-01-22 13:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/hbwapi.h
    + Added hbwapi_stor_*() functions to store Windows structures
      RECT, POINT and DEVMODE. Latter supports hash only (due
      to large number of structure members), other two supports
      both array and hash.
      Please review my code.
    + WAPI_MOVETOEX() now uses hbwapi_stor_POINT().
    ! WAPI_DRAWTEXT() fixed to return RECT (using hbwapi_stor_RECT()).

  * contrib/hbwin/legacy.prg
  * contrib/xhb/xhw32prn.prg
    * Moved Win32Bmp compatibility class from hbwin to xhb lib.
    ! Deleted Win32Prn compatibility clsss from hbwin, as it's
      now implemented in xhb in a better way.

  * harbour-win-spec
  * harbour-wce-spec
  * harbour.spec
  * include/hbver.h
  * config/global.mk
    + Changed to new major version number:
         2.1.0dev (from 2.0.1dev)
      This gives way for 2.0.x branch to take
      the 2.0.1dev version number.
2010-01-22 12:27:04 +00:00
Viktor Szakats
948d042fc8 2010-01-22 01:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
    ! Applied set of HB_SENDMAIL() patches sent by Francesco Perillo:
      - nTimeOut defaults to 10 seconds
      - check for actually receiving "250 " to EHLO and not waiting for timeout
      - don't wait for timeout
      - check for actually receiving "250 " to HELO and not waiting for timeout
      [TOMERGE 2.0]

  * contrib/hbwin/wapi_wingdi.c
    + Added TODO to WAPI_SELECTOBJECT() to implement reference counting
      when assigning an GC collected object to another one (DC).
      Any idea how to do this properly?

  * contrib/hbwin/wapi_winuser.c
    + Added WAPI_GETSYSTEMMETRICS().

  * contrib/hbwin/hbwin.ch
    + Added WIN_SM_* constants for WAPI_GETSYSTEMMETRICS()..

  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/wapi_shellapi.c
    - Deleted unnecessary Windows headers.

  * contrib/hbwin/win_dlg.c
    + WAPI_PRINTDLGDC() now sets owner window for better
      results (f.e. in GTWVT it will block clicking on
      app window and newer style printer dialog will be presented)

  * contrib/hbwin/win_prn1.c
    * Minor.
2010-01-22 00:27:53 +00:00
Viktor Szakats
8269d61d2c 2010-01-21 16:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/memoedit.prg
    ! Fixed to not return edited memoedit buffer if :Saved
      flag is false. This patch is meant to fix sf.net bug #2936334.
      Again such a huge bug I wonder no one noticed it so far.
      MEMOEDIT() is the remaining last dark corners of Harbour RTL
      (maybe with AChoice()) which is not fully C5.x compatible,
      and it's a heap of patches and hacks to give answer to
      reported problems.
      Eventually some concerned MEMOEDIT() user will have to rework
      it like we did with GET/TBROWSE to give a proper fix to all
      reported issues.
      (F.e. in TEditor() there is a bug where chars are stuffed to
      the wrong position if initially we position cursor after EOL.
      Try by deleting text.txt in attached example.)
      Please test, review, fixme, look also for regressions.
    + Added initial support for ME_PAST Xbase++ event. Please test,
      I didn't make any testing against Xbase++.

  * contrib/hbwin/wapi_wingdi.c
    + WAPI_SELECTOBJECT() got support for HBRUSH.

  * contrib/hbwin/win_prn1.c
    + Added two TOFIX comments to serious security holes and potential
      GPFs to bitmap handling functions. Enough to load a malformed or
      corrupted .bmp file to exploit it.
      Any takers for fixing them?

  * contrib/hbide/idemisc.prg
    * Two STATIC variables prefixed with 's_'
2010-01-21 16:03:31 +00:00
Viktor Szakats
4abe879011 2010-01-21 12:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_alloc.c
  * contrib/hbwin/hbwapi.h
    + Added GC collected HBRUSH support functions.

  * contrib/hbwin/wapi_wingdi.c
    + Added link to WinCE MSDN documentation page.
    + Added hbwapi_par_POINT(). Handles both hash and array.
    + Added WAPI_CREATESOLIDBRUSH()
    + Added WAPI_CREATEHATCHBRUSH()
    + WAPI_SELECTOBJECT() corrected to return integer when region is passed.
    + Added:
        WAPI_FILLRECT()
        WAPI_ROUNDRECT()
        WAPI_RECTANGLE()
        WAPI_ARC()
        WAPI_ELLIPSE()

  * contrib/hbwin/hbwin.ch
    + WIN_HS_* constants added for WAPI_CREATEHATCHBRUSH()
    + WIN_DT_* constants converted to hex format.
2010-01-21 11:41:25 +00:00
Viktor Szakats
2e4a02bfd7 2010-01-21 11:50 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Documented minimum requirement of CEGCC 0.55 (mingwarm)

  * contrib/hbwin/hbwin.ch
    + Added WIN_*_PRECIS constants.
    + Added WIN_DT_* (WAPI_DRAWTEXT()) constants.

  * contrib/hbwin/Makefile
  + contrib/hbwin/win_dlg.c
    + Added WIN_PRINTDLGDC() printer dialog.
      Some ideas/lines taken from HWGUI project.

  * contrib/hbwin/hbwapi.h
  * contrib/hbwin/wapi_wingdi.c
    + Added hbwapi_par_RECT() supporting both hash and array input.
    ! WAPI_CREATEFONT() fixed to use neutral defaults.
    ! WAPI_SELECTOBJECT() fixed two warnings.

  * contrib/hbwin/wapi_winuser.c
    + Added WAPI_DRAWTEXT().
2010-01-21 10:54:45 +00:00
Viktor Szakats
b1efdbe888 2010-01-20 16:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
    ! Guarded for ! HB_OS_WIN_CE.
      (mingwarm compiles it, but poccarm doesn't)
      Maybe to focus on important things, we should drop
      POCC support altogether?

  * contrib/hbwin/win_tprn.prg
    * WIN_DELETEDC() calls deleted. 'hDC := NIL' is enough.

  * contrib/hbwin/Makefile
  + contrib/hbwin/wapi_alloc.c
  * contrib/hbwin/win_prn1.c
    + Moved hbwapi_* low-level object handling functions to
      separate WAPI source.
    * WIN_DELETEDC() converted to compatibility stub, it 
      will no longer release the handle.

  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/win_dll.c
    % Deleted '#if defined( HB_OS_WIN )' guards.
      (we can readd them for extra safety, but in this case
      they should be readded consistently for all source files)
    % Deleted '! defined( __RSXNT__ )' guards
      RSXNT is not supported a dead compiler since long.
    % Deleted '! defined( __CYGWIN__ )' guards.
      It compiles with current Cygwin, if someone is interested
      in older versions, pls send build results.
2010-01-20 16:05:09 +00:00
Viktor Szakats
fdac3b6883 2010-01-20 13:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  + contrib/hbwin/wapi_wingdi.c
    + Added experimental WAPI wrappers for Windows GDI printing
      functions also found in win_prn1.c.
      This is partially to avoid the legacy interface which
      is a combination of WIN_* functions and Harbour class.
      Which may seem to make thing more complicated at first,
      but IME it provides a much cleaner interface, as you
      only have to adapt to MSDN docs.
      It's also a test bed for structure passing in WAPI
      situations. I've used hashes as the best looking
      solution, but even this has some things left to solve
      (like handling string types and returning values).
      Anyway it's a food for thought.

  * contrib/hbwin/hbwin.ch
    + Added WIN_DMORIENT_* constants.

  * contrib/hbwin/win_prn1.c
    ! Fixed to not accept raw pointers where HDC or HPEN is
      expected. I've added this feature last year, without
      making special mention of it in ChangeLog, so it was
      a double-mistake.
    * Minor cleanups (hb_retnl() vs hb_retni())
    % Optimization in WIN_SETBKMODE().
2010-01-20 12:53:44 +00:00