Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Przemyslaw Czerpak
On Wed, 09 Sep 2009, Alexandr Okhotnikov wrote: Hi, > Function working with files a lot (several dozen) and each must write > a wrapper, given codepage each platform and each locale? Nuance: No, you haven't. You wrote that you cannot open existing files with national characters what is not true

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Alexandr Okhotnikov
2009/9/8 Przemyslaw Czerpak : > On Tue, 08 Sep 2009, Alexandr Okhotnikov wrote: > > Who's forbidden you to use hb_strtoutf8() function? > >   proc main() >      local cFile >      request hb_codepage_PLISO >      set( _SET_CODEPAGE, "PLISO" ) >      cFile := "b��dz�cy-���w" >      memowrit( cFile,

Re: [Harbour] SF.net SVN: harbour-project:[12445] trunk/harbour

2009-09-08 Thread Tamas TEVESZ
On Tue, 8 Sep 2009, vszak...@users.sourceforge.net wrote: hi, > * utils/hbmk2/hbmk2.prg > + Added sunpro compiler support. (not tested, bazaar style) no time for more extensive tests (it just finished building, and i'm about to fall asleep standing), but it does seem to be in perfect

[Harbour] SF.net SVN: harbour-project:[12446] trunk/harbour

2009-09-08 Thread druzus
Revision: 12446 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12446&view=rev Author: druzus Date: 2009-09-09 00:24:54 + (Wed, 09 Sep 2009) Log Message: --- 2009-09-09 02:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/bin/hb-func.s

[Harbour] Harbour clang static analyzer results

2009-09-08 Thread Viktor Szakáts
Hi All, Running clang in static analyser mode on darwin (x86-64) resulted in these messages: (http://clang-analyzer.llvm.org/) Maybe some of them are worth to verify. --- ../../../ppcore.c:1785:21: warning: Dereference of null pointer pState->pMap[ HB_PP_HASHID( pMatch ) ] |= id;

[Harbour] SF.net SVN: harbour-project:[12445] trunk/harbour

2009-09-08 Thread vszakats
Revision: 12445 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12445&view=rev Author: vszakats Date: 2009-09-08 21:25:24 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 23:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * utils/hbmk2/hbmk2.prg

[Harbour] Signals in HbQt

2009-09-08 Thread CarozoDeQuilmes
Hi Pritpal, could you add the following signals to HbQt For Class QTableWidget: I need them: - void *cellActivated * ( int *row*, int *column* ) - void *cellChanged

Re: [Harbour] Exist PICTURE for password with GET?

2009-09-08 Thread Guillermo Varona Silupú
Thanks Mario. Best Regards GVS Mario H. Sabado escribió: Hi GVS, Viktor Szakáts escribió: > Hi, > Please check the end of source/rtl/tget.prg, there you > can find which parameters need to be passed to hb_get():new() > to create a new instance. The parameters are the same as > for GetNew()

[Harbour] Capture errors messages in hb_compilebuf() at runtime

2009-09-08 Thread David MS
Hi all, There is a way to capture error messages generated by hb_compilebuf() or hb_compilefrombuf() at runtime? Best Regards, David Montaño. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/ha

[Harbour] clang vs gcc (on Darwin)

2009-09-08 Thread Viktor Szakáts
Snippet from this article: http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/9 "Clang brings with it the two headline attributes you expect in a hot, new compiler: shorter compile times and faster executables. In Apple's testing with its own applications such as iCal, Address Boo

Re: [Harbour] Exist PICTURE for password with GET?

2009-09-08 Thread Mario H. Sabado
Hi GVS, Viktor Szakáts escribió: > Hi, > Please check the end of source/rtl/tget.prg, there you > can find which parameters need to be passed to hb_get():new() > to create a new instance. The parameters are the same as > for GetNew(), you can find a GetNew() example in tests/rto_get.prg. > Then

Re: [Harbour] win_prt.c and win_tprt.prg

2009-09-08 Thread Viktor Szakáts
Hi Alex, On 2009.09.08., at 5:16, Alex Strickland wrote: Hi Viktor I have changed a few things here, made it a bit more consistent (setting queue size and timeouts) and added to your parameter checking (initialised the port handles to -1). I have changed the name of the Error() method to

[Harbour] Getting errors and warnings in MinGW compile

2009-09-08 Thread Maurizio la Cecilia
I receive the messages below trying to compile latest CVS versions with MinGW. hbmk2: Error: Running Harbour compiler (internal). 1 hbi18n.o:hbi18n.c:(.text+0x2c): undefined reference to `hb_vmProcessSymbolsEx' c:/CVS/harbour/bin/../utils/hbmk2/hbmk2.prg(845) Warning W0001 Ambiguous reference 'H

[Harbour] win_prt.c and win_tprt.prg

2009-09-08 Thread Alex Strickland
Hi Viktor I have changed a few things here, made it a bit more consistent (setting queue size and timeouts) and added to your parameter checking (initialised the port handles to -1). I have changed the name of the Error() method to ErrorText() (I discovered was an unfortunate choice). I droppe

Re: [Harbour] Exist PICTURE for password with GET?

2009-09-08 Thread Guillermo Varona Silupú
Przemyslaw Czerpak escribió: On Tue, 08 Sep 2009, Guillermo Varona Silupú wrote: PROCEDURE Main LOCAL cVar1 := cVar2 := SPAC(10), oPsw //, GetList [...] AADD(GetList, oPsw) [...] Just an observation: Why not work with getList LOCAL? Because it's NIL. You have to ini

Re: [Harbour] Exist PICTURE for password with GET?

2009-09-08 Thread Przemyslaw Czerpak
On Tue, 08 Sep 2009, Guillermo Varona Silupú wrote: > PROCEDURE Main > LOCAL cVar1 := cVar2 := SPAC(10), oPsw //, GetList [...] > AADD(GetList, oPsw) [...] > Just an observation: > Why not work with getList LOCAL? Because it's NIL. You have to initialize it to be an array: local GetList := {}

Re: [Harbour] Exist PICTURE for password with GET?

2009-09-08 Thread Guillermo Varona Silupú
Viktor Szakáts escribió: Hi, Please check the end of source/rtl/tget.prg, there you can find which parameters need to be passed to hb_get():new() to create a new instance. The parameters are the same as for GetNew(), you can find a GetNew() example in tests/rto_get.prg. Then you can add the creat

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Przemyslaw Czerpak
On Tue, 08 Sep 2009, Alexandr Okhotnikov wrote: Hi, > It's not about application portability, I just can not open existing > files with national characters. For example, the user's home directory > is the analogue of "Pictures" - "Рисунки" (in Russian) Who's forbidden you to use hb_strtoutf8() f

[Harbour] SF.net SVN: harbour-project:[12444] trunk/harbour

2009-09-08 Thread vszakats
Revision: 12444 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12444&view=rev Author: vszakats Date: 2009-09-08 12:59:02 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 14:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/darwin/clang.mk

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Alexandr Okhotnikov
Hi It's not about application portability, I just can not open existing files with national characters. For example, the user's home directory is the analogue of "Pictures" - "Рисунки" (in Russian) 2009/9/8 Franček Prijatelj : > > Hi Alexandr > > Yes this is another solution. > If we want to be p

Re: [Harbour] SF.net SVN: harbour-project:[12443] trunk/harbour

2009-09-08 Thread Viktor Szakáts
Harbour builds cleanly with clang now. To try, use: $ make HB_CCPREFIX=/Developer/usr/bin/ HB_COMPILER=clang This frontend is much faster than gcc (especially than latest 4.2.1). Brgds, Viktor On 2009.09.08., at 2:09, vszak...@users.sourceforge.net wrote: Revision: 12443 http://har

[Harbour] SF.net SVN: harbour-project:[12443] trunk/harbour

2009-09-08 Thread vszakats
Revision: 12443 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12443&view=rev Author: vszakats Date: 2009-09-08 12:09:22 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 14:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * include/hbsetup.h * con

Re: [Harbour] SF.net SVN: harbour-project:[12442] trunk/harbour

2009-09-08 Thread Viktor Szakáts
Thank you. [ Couldn't yet find the compiler identification macro for clang. ] Brgds, Viktor On 2009.09.08., at 1:32, Przemyslaw Czerpak wrote: On Tue, 08 Sep 2009, vszak...@users.sourceforge.net wrote: Hi, 2009-09-08 13:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + config/darwin/cla

Re: [Harbour] SF.net SVN: harbour-project:[12442] trunk/harbour

2009-09-08 Thread Przemyslaw Czerpak
On Tue, 08 Sep 2009, vszak...@users.sourceforge.net wrote: Hi, > 2009-09-08 13:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) > + config/darwin/clang.mk > + Added experimental support for clang compiler frontend on > Snow Leopard + new XCode systems. (it's unclear which of them >

Re: [Harbour] ActiveX

2009-09-08 Thread Przemyslaw Czerpak
On Mon, 07 Sep 2009, Alex Strickland wrote: Hi, > Do you think it is worth having a function to manually shut down the > connection point, as HWGUI does? No, we should not have anything like that - it's potential GPF trap. In Harbour Release() is called automatically when all variables holding

[Harbour] SF.net SVN: harbour-project:[12442] trunk/harbour

2009-09-08 Thread vszakats
Revision: 12442 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12442&view=rev Author: vszakats Date: 2009-09-08 11:26:25 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 13:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + config/darwin/clang.mk

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Przemyslaw Czerpak
On Tue, 08 Sep 2009, Szak�ts Viktor wrote: Hi, > Actually, Harbour has the basics for such filename conversion > support, but internally UTF-8 isn't yet supported in these > conversions yet. Same goes for terminal output f.e.. Terminal output depends on used GTs. GTTRM and GTSLN supports utf8 mo

[Harbour] SF.net SVN: harbour-project:[12441] trunk/harbour

2009-09-08 Thread druzus
Revision: 12441 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12441&view=rev Author: druzus Date: 2009-09-08 10:10:24 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 12:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/thr

Re: [Harbour] SF.net SVN: harbour-project:[12436] trunk/harbour

2009-09-08 Thread Przemyslaw Czerpak
On Tue, 08 Sep 2009, Phil Krylov wrote: Hi, > On Tue, Sep 8, 2009 at 12:30 AM, wrote: > > 2009-09-07 22:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > >  * harbour/source/vm/thread.c > >    + added HB_MT() PRG function which exists only in MT HVM version and > >      can be REQUESTed

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Viktor Szakáts
Actually, Harbour has the basics for such filename conversion support, but internally UTF-8 isn't yet supported in these conversions yet. Same goes for terminal output f.e.. Brgds, Viktor On 2009.09.08., at 11:50, Franček Prijatelj wrote: Hi Alexandr Yes this is another solution. If we want

[Harbour] SF.net SVN: harbour-project:[12440] trunk/harbour

2009-09-08 Thread druzus
Revision: 12440 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12440&view=rev Author: druzus Date: 2009-09-08 10:03:24 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 12:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbsta

Re: [Harbour] Wrong autodetection in Eclipse

2009-09-08 Thread Lorenzo Fiorini
On Tue, Sep 8, 2009 at 11:51 AM, Massimo Belgrano wrote: > which ecliple you use: http://www.eclipse.org/downloads/ > > you use eclipse as ide? Yes, Eclipse IDE for C/C++ developers. best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-projec

Re: [Harbour] Wrong autodetection in Eclipse

2009-09-08 Thread Massimo Belgrano
which ecliple you use: http://www.eclipse.org/downloads/ you use eclipse as ide? 2009/9/8 Lorenzo Fiorini : > On Tue, Sep 8, 2009 at 11:23 AM, Viktor Szakáts wrote: > >> Pls first try after 12439. Maybe it fixes the problem. > > Many thanks, it works now. > > best regards, > Lorenzo > __

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Franček Prijatelj
Hi Alexandr Yes this is another solution. If we want to be portable we shuldn't use spaces and national characters in file names. BRGS Franček Alexandr Okhotnikov wrote: > > Hi > > example: (for Russian, all *.prg in codepage 1251) > > INIT PROCEDURE Qt_Start() > LOCAL lang > qt_q

Re: [Harbour] Wrong autodetection in Eclipse

2009-09-08 Thread Lorenzo Fiorini
On Tue, Sep 8, 2009 at 11:23 AM, Viktor Szakáts wrote: > Pls first try after 12439. Maybe it fixes the problem. Many thanks, it works now. best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailm

Re: [Harbour] Re: Harbour under OS/2 - eCS 12437

2009-09-08 Thread Viktor Szakáts
Thank you. Brgds, Viktor On 2009.09.08., at 11:37, David Arturo Macias Corona wrote: Thanks Viktor >Pls try with 12439. It work fine now David Macias ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman

[Harbour] Re: Harbour under OS/2 - eCS 12437

2009-09-08 Thread David Arturo Macias Corona
Thanks Viktor >Pls try with 12439. It work fine now David Macias ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour

Re: [Harbour] Wrong autodetection in Eclipse

2009-09-08 Thread Viktor Szakáts
Pls first try after 12439. Maybe it fixes the problem. Brgds, Viktor On 2009.09.08., at 11:21, Lorenzo Fiorini wrote: I've always built harbour using Eclipse. Today I removed sh ./make_gnu.sh and I get: Build of configuration Linux GCC for project harbour make clean !HB_PLATFORM: l

[Harbour] Wrong autodetection in Eclipse

2009-09-08 Thread Lorenzo Fiorini
I've always built harbour using Eclipse. Today I removed sh ./make_gnu.sh and I get: Build of configuration Linux GCC for project harbour make clean !HB_PLATFORM: linux ! Building Harbour 2.0.0beta3 from source - http://www.harbour-project.org ! MAKE: make 3.81 /bin/sh clean make: comma

Re: [Harbour] Harbour under OS/2 - eCS 12437

2009-09-08 Thread Viktor Szakáts
Hi David, Pls try with 12439. Brgds, Viktor On 2009.09.08., at 10:55, David Arturo Macias Corona wrote: Harbour build fine with gcc433 on Sep 5, now with * $Id: ChangeLog 12437 2009-09-08 00:45:56Z vszakats $ 2009-09-08 02:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) it fail with error

[Harbour] SF.net SVN: harbour-project:[12439] trunk/harbour

2009-09-08 Thread vszakats
Revision: 12439 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12439&view=rev Author: vszakats Date: 2009-09-08 09:13:47 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 11:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/global.mk ! Co

[Harbour] Re: SF.net SVN: harbour-project:[12426] trunk/harbour

2009-09-08 Thread David Arturo Macias Corona
>2009-09-07 10:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > * harbour/source/rtl/hbsocket.c >+ added support for setting non blocking IO mode in OpenWatcom OS2 > builds - please test. How can be tested ? David Macias ___ Harbour

[Harbour] Harbour under OS/2 - eCS 12437

2009-09-08 Thread David Arturo Macias Corona
Harbour build fine with gcc433 on Sep 5, now with * $Id: ChangeLog 12437 2009-09-08 00:45:56Z vszakats $ 2009-09-08 02:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) it fail with error: --- [E:\harbour909c\harbour]make -r -w 1>make_gnu.log SYS1003: The syntax o

Re: [Harbour] Exist PICTURE for password with GET?

2009-09-08 Thread Viktor Szakáts
Hi, Please check the end of source/rtl/tget.prg, there you can find which parameters need to be passed to hb_get():new() to create a new instance. The parameters are the same as for GetNew(), you can find a GetNew() example in tests/rto_get.prg. Then you can add the created get object to GetList

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Alexandr Okhotnikov
Hi example: (for Russian, all *.prg in codepage 1251) INIT PROCEDURE Qt_Start() LOCAL lang qt_qapplication() lang := QTextCodec():new() lang:setCodecForCStrings( lang:codecForName_1("Windows-1251") ) HB_SETCODEPAGE( "RU1251" ) RETURN All messages are displayed correctly in

[Harbour] SF.net SVN: harbour-project:[12438] trunk/harbour

2009-09-08 Thread vszakats
Revision: 12438 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12438&view=rev Author: vszakats Date: 2009-09-08 08:07:12 + (Tue, 08 Sep 2009) Log Message: --- 2009-09-08 10:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbnetio/utils/net

Re: [Harbour] HOWTO about codepage in HbQt

2009-09-08 Thread Franček Prijatelj
Hi Pritpal Obviously we need Qstring implementation (not nedded for begining). Instead of using char* we have to use QString and its methods. By default Qstring uses "fromAscii()" method on char* assignement. You should change in hbqt.h (for begining) #define hbqt_par_QString( n )