[Harbour] 2008-11-02 07:39 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-02 07:39 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/version.c ! Added missing header from previous change. * source/vm/itemapi.c ! snprintf() -> hb_snprintf() This got incidentally reverted in previous commit by mistake. -- Brgds, Viktor

[Harbour] 2008-11-02 07:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-02 07:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbstdgen.ch - Removed HB_VERSION mistakenly left there. * include/hbextern.ch * source/rtl/version.c + Added HB_OSISWINNT() + Added HB_OSISWINCE() [TOMERGE 1.0] * include/hbver.ch * source/rtl/ve

Re: [Harbour] 2008-11-01 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Francesco Saverio Giudice
Hi Viktor, Il 01/11/2008 23.29, Szakáts Viktor ha scritto: Hi Francesco, xhb dependency is not a good solution for any contribs. I agree. I strongly oppose this move, as I think it's the wrong one in numerous ways (pls see my other mails). ok, and I have already accepted it in previou

Re: [Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Przemyslaw Czerpak
On Sat, 01 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > The other issue is that 2 dimensional array. Currently > I'm changing it to 1 dimensional on load, and lookup > is faster this way, and the whole translation array > takes less space. Maybe it doesn't matter, I don't know. With hash array t

Re: [Harbour] 2008-11-01 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
Hi Francesco, actually hbdbgfx works with Windows and Linux if you use xhb (and in particular hboutdbg.c that it is included in xhb lib). I wrongly said before that this lib works only under Windows because I made it one year ago and I forgot that hb_outdebug() in xhb was already made for

[Harbour] i18n high level functions

2008-11-01 Thread Szakáts Viktor
Hi all, Pls find attached high level i18n_* functions. (untested) hb_i18n_fnametemplate( [] ) -> hb_i18n_baselang( [] ) -> hb_i18n_activelang( [] ) -> hb_i18n_gettext( ) -> hb_i18n_gettextlang( [, ] -> Not strictly intended for the core as it has some parts I wouldn't like to be include

Re: [Harbour] 2008-11-01 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Francesco Saverio Giudice
Hi Viktor, Il 01/11/2008 15.56, Szakáts Viktor ha scritto: 2008-11-01 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/hbi18n.c % Removed 'comment' field from language file header. Any text can be added simply by adding it to the translation table. * contrib/Mak

[Harbour] 2008-11-01 22:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 22:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/hbi18n.c * Modified __I18N_GETTEXT() to not RTE when trs table is non-array (like NIL). * USHORT -> ULONG in a few places. * source/rtl/gtwvt/gtwvt.c * Minor formatting. -- Brgds, Viktor __

Re: [Harbour] 2008-11-01 20:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Bill Smith
Hi Przmemek, You might try the following: (Windows XT, bcc compiler, hbmk -gui wvtext) run wvtext mouse->click on maximize screen [ ] press F3, repaints but [ ] still inactive mouse->click on minimize screen [-] mouse->in tray, click to restore. wvtext turns green press F3 mouse->click on maxim

[Harbour] 2008-11-01 17:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 17:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/gtwvt/gtwvt.c + Added support for HB_GTI_ICONRES, HB_GTI_ICONFILE before the window is created. ! Fixed resource leak when HB_GTI_ICONFILE was used. ! Fixed problem with HB_GTI_ICONRES when it was rese

Re: [Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Szakáts Viktor
Hi Mindaugas, Przemek, Thank you. Shouldn't the cast in the changed line be also changed to ( ULONG )? Yes, It can be changed or removed though it will work without warnings as is. BTW it will be more efficient to load whole file at the beginning and then decode it but I do not think if it's

Re: [Harbour] MT - WorkAreas - A Feature Request

2008-11-01 Thread Przemyslaw Czerpak
On Fri, 31 Oct 2008, Pritpal Bedi wrote: Hi Pritpal, > Now the real issue: > I have built the RDD on back of nWA which needs to be unique > for each table open. Now in MT every thread has common nWAs Each thread has its own poll of WA numbers not common. > and this is breaking my methodology.

Re: [Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Przemyslaw Czerpak
On Sat, 01 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > Thank you. Shouldn't the cast in the changed line > be also changed to ( ULONG )? Yes, It can be changed or removed though it will work without warnings as is. BTW it will be more efficient to load whole file at the beginning and then decod

Re: [Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Szakáts Viktor
Thank you. Shouldn't the cast in the changed line be also changed to ( ULONG )? Brgds, Viktor On 2008.11.01., at 21:13, Przemyslaw Czerpak wrote: 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/itemseri.c ! fixed 8-bytes integer numbers deserializ

Re: [Harbour] MT - WorkAreas - A Feature Request

2008-11-01 Thread Pritpal Bedi
Just not to be buried under messages :-( Pritpal Bedi wrote: > > Hello Przemek > > I am developing a RDBMS RDD (real-time) on top of USRRDD. > So far so good, thanks for this superb tool. > > Now MT is in picture, but the RDBMS communication layer is not > MT safe. I have guarded all functio

[Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Przemyslaw Czerpak
2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/itemseri.c ! fixed 8-bytes integer numbers deserialization + added support for serializing number with information about size and decimal places. It can be activated by passing .T. as second

[Harbour] 2008-11-01 20:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Przemyslaw Czerpak
2008-11-01 20:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/gtwvt/gtwvt.h * harbour/source/rtl/gtwvt/gtwvt.c ! fixed HB_GTI_SETPOS_ROWCOL and HB_GTI_SETPOS_XY parameters decoding * automatically resize caret when cell size is changed * show window afte

Re: [Harbour] 2008-11-01 08:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Mindaugas Kavaliauskas
Hi, I suggest to use internally hash array instead of normal array. It will be more flexible on .prg level because user can simply make: trs[ cText ] := cTranslation and then: ? trs[ cText ] Almost thee same solution I'm using in my local i18n runtime. Please also remember that you c

[Harbour] 2008-11-01 17:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 17:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/gtwvt/gtwvt.h * source/rtl/gtwvt/gtwvt.c + Added support for HB_GTI_ICONRES, HB_GTI_ICONFILE before the window is created. ! Fixed resource leak when HB_GTI_ICONFILE was used. ! Fixed problem with HB

Re: [Harbour] 2008-11-01 08:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
Hi Przemek, Many thanks for your suggestions. I'm afraid I'll quickly run out of my C expertise to rework everything to another new format, but what you say may all make sense. As for serialize functions and hash, I'm not sure they would be more efficient than now, especially for loading. I have

Re: [Harbour] 2008-11-01 08:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Przemyslaw Czerpak
On Sat, 01 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > ; NOTE: The internal format of 'trs' (loaded translation) is also > different. For minimal memory/speed overhead, I've choosen a one > dimensional array, as opposed to the original two dimensional >

[Harbour] 2008-11-01 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/hbi18n.c % Removed 'comment' field from language file header. Any text can be added simply by adding it to the translation table. * contrib/Makefile ! Missing hbdbgfx added here, too. ; BTW, I've in

Re: [Harbour] Re: GTWVT and HB_GTI_ICONRES stopped working

2008-11-01 Thread Przemyslaw Czerpak
On Sat, 01 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > Managed to solve this by moving this call after > my SetMode() call and an new 'hb_dispOutAt( 0, 0, " " )' > call between them. > HB_GTI_ICONRES assumes an already created window. I suggest to store information about icon into pWVT structur

[Harbour] 2008-11-01 07:31 UTC-0800 Pritpal Bedi ([EMAIL PROTECTED])

2008-11-01 Thread Pritpal Bedi
2008-11-01 07:31 UTC-0800 Pritpal Bedi ([EMAIL PROTECTED]) * harbour/contrib/make_vc_all.bat * harbour/contrib/make_gcc_all.sh + hbdbgfx librray for auto build. Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/2008-11-01-07%3A31-UTC-0800-Pritpal-Bedi-%28pritpa

[Harbour] Re: GTWVT and HB_GTI_ICONRES stopped working

2008-11-01 Thread Szakáts Viktor
Managed to solve this by moving this call after my SetMode() call and an new 'hb_dispOutAt( 0, 0, " " )' call between them. HB_GTI_ICONRES assumes an already created window. Brgds, Viktor On 2008.11.01., at 8:24, Szakáts Viktor wrote: Hi all, Somewhere between rev 9760 and 9781, hb_gtInfo( H

Re: [Harbour] How to retrieve - from PRG to C

2008-11-01 Thread Przemyslaw Czerpak
On Fri, 31 Oct 2008, Pritpal Bedi wrote: Hi Pritpal, > I am trying something lile: > pGT1 := hb_gtCreate( 'WVG' ) > pGT := hb_gtSelect( pGT1 ) > hb_gtInfo( HB_GTI_PRESPARAMS, { WS_EX_DLGMODALFRAME, NIL, 10, 10, 150, 100, > pGT, .F. } ) > In hb_gt_wvt_Info() > case HB_GTI_PRESPARAMS: > PHB_

[Harbour] Re: Harbour under OS/2 - OpenWatcom

2008-11-01 Thread Przemyslaw Czerpak
On Sat, 01 Nov 2008, David Arturo Macias Corona wrote: Hi David, > Trying with both e-mail address: > - One of Changelog messages >2008-11-01 13:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > - Other of your messages to Harbour mailing list >Przemyslaw Czerpak druzus at acn.waw

[Harbour] 2008-11-01 15:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Przemyslaw Czerpak
2008-11-01 15:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbdefs.h + added #define INCL_LONGLONG to include native compiler LONGLONG definition. It's necessary for OpenWatcom. Please check how it will interact with other OS2 compilers (GCC) best rega

Re: [Harbour] How to retrieve - from PRG to C

2008-11-01 Thread Pritpal Bedi
Hello Just to keep it alive! Pritpal Bedi wrote: > > Hi Przemek > > I am trying something lile: > > pGT1 := hb_gtCreate( 'WVG' ) > pGT := hb_gtSelect( pGT1 ) > hb_gtInfo( HB_GTI_PRESPARAMS, { WS_EX_DLGMODALFRAME, NIL, 10, 10, 150, > 100, pGT, .F. } ) > > In hb_gt_wvt_Info() > case HB_GTI

[Harbour] 2008-11-01 13:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-01 Thread Przemyslaw Czerpak
2008-11-01 13:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/common/hbgete.c ! fixed OS2 casting for non GCC compilers best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.

Re: [Harbour] Harbour under OS/2 - OpenWatcom

2008-11-01 Thread Przemyslaw Czerpak
On Sat, 01 Nov 2008, David Arturo Macias Corona wrote: Hi David, > >[62]: LDFLAGS = debug all OP osn=NT OP stack=65536 OP CASEEXACT > osn excluded. OpenWatcom should define one based in platform Which does not have to be the one you want to create. But we can leave it now. > ../../hbgete.c(93):

[Harbour] Harbour under OS/2 - OpenWatcom

2008-11-01 Thread David Arturo Macias Corona
>copy config/w32/owatcom.cf to config/os2/owatcom.cf >and update it for OS2 builds. At least these lines should be changed: >[19]: CPPFLAGS = -w2 -d1 -zq -bt=NT >[56]: echo @%watcom%/binnt/wlink.lnk >> __link__.tmp >[57]: echo LIB kernel32.lib, user32.lib, wsock32.lib, winspool.lib, >oleaut32.lib,

Re: [Harbour] HB_TRACE() - How to Invoke

2008-11-01 Thread Przemyslaw Czerpak
On Fri, 31 Oct 2008, Pritpal Bedi wrote: Hi Pritpal, > How can I invoke > HB_TRACE( HB_TR_DEBUG, ( "hb_gt_wvt_Redraw(%p,%d,%d,%d)", pGT, iRow, iCol, > iSize ) ); > to work ? read doc/tracing.txt Short instruction. Compile the code you want to trace with HB_TR_LEVEL_DEBUG macro, f.e.: set C_

[Harbour] Colors and fonts with gtwvt/gtxwc

2008-11-01 Thread Lorenzo Fiorini
Can we say that the gtwvt's way to manage the palette will be also compatible with gtxwc ( when it'll be added )? I'm still using hard coded values in gtwvt.h and gtxwc.c and I'd like to have an external configuration file. I'm not finding a "clear" way to change the fixed font under gtxwc. I'm us

[Harbour] 2008-11-01 12:02 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 12:02 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbextern.ch * source/rtl/memofile.c + Added HB_MEMOREAD() which is identical to MEMOREAD() except it won't truncate the last byte (on non-UNIX compatible systems) if it's a EOF char. See also exist

[Harbour] Re: Harbour under OS/2

2008-11-01 Thread David Arturo Macias Corona
> 2008-10-31 13:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > * harbour/source/vm/dynlibhb.c > * harbour/source/common/hbgete.c > * harbour/source/common/hbfsapi.c > * harbour/source/rtl/hbinet.c > * harbour/source/rtl/hbffind.c > * harbour/source/rtl/filesys.c > * harbou

[Harbour] 2008-11-01 11:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 11:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/hbi18n.c * Minor change in header to separate it visually from comment field. -- Brgds, Viktor ___ Harbour mailing list Harbour@harbour-project.org http://lists.har

[Harbour] 2008-11-01 11:11 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 11:11 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbextern.ch * source/rtl/hbi18n.c % Using buffered hb_file*() API in __I18N_LOAD() instead of plain hb_fs*(). This will cause speedup when buffering gets implemented in hb_file*(), because current

[Harbour] 2008-11-01 08:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-11-01 Thread Szakáts Viktor
2008-11-01 08:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbextern.ch * common.mak * source/rtl/Makefile + source/rtl/hbi18n.c + Added basic/low level i18n functions: __I18N_SAVE( cFileName | nHandle, aSortedTable [, cComment ] ) => lSuccess __I18N_LOAD( cFil

Re: [Harbour] MT extensions

2008-11-01 Thread Szakáts Viktor
SYNC[RONIZED] is much better than CRITICAL. Still, the only problem with it that it used a different term than our other Harbour functions targeting the same feature (hb_mutex*()). Brgds, Viktor On 2008.10.31., at 17:12, Mindaugas Kavaliauskas wrote: Java uses the keyword "mutexed" which IMO t

Re: [Harbour] Which "standard" GUI for Harbour

2008-11-01 Thread Ernad Husremovic
Lorenzo wrote: > > I'll try to create a screencast. > > BTW who knows simple and free screencast apps for Windows and Mac OS > X? http://www.jingproject.com/ Regards, Ernad ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-proj

Re: [Harbour] 2008-10-31 13:02 UTC-0800 Pritpal Bedi ([EMAIL PROTECTED])

2008-11-01 Thread Szakáts Viktor
Hi Pritpal, Thanks. Could you pls also add it to the rest of 'all' files in the same directory? (Makefile, make_vc_all.bat and make_gcc_all.sh) Brgds, Viktor On 2008.10.31., at 20:56, Pritpal Bedi wrote: 2008-10-31 13:02 UTC-0800 Pritpal Bedi ([EMAIL PROTECTED]) * harbour/contrib/make_b32_

[Harbour] GTWVT and HB_GTI_ICONRES stopped working

2008-11-01 Thread Szakáts Viktor
Hi all, Somewhere between rev 9760 and 9781, hb_gtInfo( HB_GTI_ICONRES, ) stopped setting the system icon of the GTWVT window. Could someone please check this? Brgds, Viktor ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbou

Re: [Harbour] How to retrieve - from PRG to C

2008-11-01 Thread Pritpal Bedi
Hi Przemek I am trying something lile: pGT1 := hb_gtCreate( 'WVG' ) pGT := hb_gtSelect( pGT1 ) hb_gtInfo( HB_GTI_PRESPARAMS, { WS_EX_DLGMODALFRAME, NIL, 10, 10, 150, 100, pGT, .F. } ) In hb_gt_wvt_Info() case HB_GTI_PRESPARAMS: PHB_ITEM pSome; pSome = hb_arrayGetPtr( pInfo->pNewVal,