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

2009-05-27 Thread Jaroslaw Kadziola
Hi Viktor, SV Here is an initial port of Superlib to Harbour: SV http://www.syenar.hu/harbour/hbsuper.zip SV [ unzip to contrib and build it the usual way ] Thanks so much. Will try build tomorrow. VS Okay. When i'm trying build hbsuper.lib with msys + mingw i get : $ hbmk2 hbsuper.hbm

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

2009-05-27 Thread Viktor Szakáts
s_woyear.prg s_writef.prg s_xbxx.prg -q0 -w1 -es2 -gc0 -l -o.hbmk\wce\mingwarm\ -iC:/msys/1.0/hb-mingwarm/include -undef:__PLATFORM__WINDOWS -D__PLATFORM__WINDOWS -D__PLATFORM__WINCE I'm not sure what's happening here, I've tried this from the command line and it didn't give the error, so I

RE: [Harbour] exit with switch and for each

2009-05-27 Thread Horodyski Marek (PZUZ)
-Original Message- From: Przemyslaw Czerpak [mailto:dru...@acn.waw.pl] Sent: Monday, May 25, 2009 9:40 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] exit with switch and for each On Sat, 23 May 2009, Vailton Renato wrote: [...] The same is for many other

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

2009-05-27 Thread Viktor Szakáts
Hi All, IMO, these new functions should be moved away from hbwin, until we clear up these issues. These functions are nowhere used inside Harbour (no in any contribs) so it's very difficult for anyone on the list to decide about their usefulness or to even try / test them. Adding such

[Harbour] PrintFileRaw

2009-05-27 Thread Itamar Lins
Hi! This part of my code is working, but returns this error. nRet := PrintFileRaw(cPrint,cArq,'Pedido') //return -2 but run ok :-( if nRet 1 cMsg := 'Erro Imprimindo: ' SWITCH nRet CASE -1 cMsg += Invalid parameters passed to function ; EXIT CASE -2 cMsg +=

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

2009-05-27 Thread vszakats
Revision: 11149 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11149view=rev Author: vszakats Date: 2009-05-27 11:15:06 + (Wed, 27 May 2009) Log Message: --- 2009-05-27 12:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * utils/hbmk2/hbmk2.prg

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

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, My question is whether to rename__AXGETCONTROL() to WIN_AXATLGETCONTROL() ? Is this such a function which users will want to (and can safely) use in their final apps? If the return value is an obscure one, useful only for AX extensions dealing with internals, I think we should keep the

Re: [Harbour] PrintFileRaw

2009-05-27 Thread Szakáts Viktor
Hi Itamar, It works here. Are you sure the printer name is a valid one? Brgds, Viktor On 2009.05.27., at 12:56, Itamar Lins wrote: Hi! This part of my code is working, but returns this error. nRet := PrintFileRaw(cPrint,cArq,'Pedido') //return -2 but run ok :-( if nRet 1 cMsg := 'Erro

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

2009-05-27 Thread vszakats
Revision: 11150 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11150view=rev Author: vszakats Date: 2009-05-27 11:23:36 + (Wed, 27 May 2009) Log Message: --- 2009-05-27 13:23 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbwin/win_prn2.c

[Harbour] hbformat a bit too eager to convert files

2009-05-27 Thread Chen Kedem
Was looking at hbformat.exe (r11148 bcc32) and trying to see if there is a command line help I executed the following in the harbour bin directory: hbformat ? The eager program started converting ALL files in that directory, did that very quick (before I had the chance to stopped it), and

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

2009-05-27 Thread Szakáts Viktor
My question is whether to rename__AXGETCONTROL() to WIN_AXATLGETCONTROL() ? Is this such a function which users will want to (and can safely) use in their final apps? If the return value is an obscure one, useful only for AX extensions dealing with internals, I think we should keep the internal

[Harbour] Re: PrintFileRaw

2009-05-27 Thread Itamar Lins
But it works here too, and returns this erro.-2 should not be running. Regards, Itamar M. Lins Jr. Szakáts Viktor harbour...@syenar.hu escreveu na mensagem news:eaea62e3-3a36-4f55-8e59-8b9a90517...@syenar.hu... Hi Itamar, It works here. Are you sure the printer name is a valid one? Brgds,

[Harbour] SF.net SVN: harbour-project:[11151] trunk/harbour/contrib/hbwin/tests/ testprn2.prg

2009-05-27 Thread vszakats
Revision: 11151 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11151view=rev Author: vszakats Date: 2009-05-27 11:40:15 + (Wed, 27 May 2009) Log Message: --- minor modif to show retval Modified Paths: --

Re: [Harbour] Set Color Foreground and Background in TQLabel and others ?

2009-05-27 Thread Xavi
Hi Pritpal, Marcos, I'm not an expert in the use of Qt. I'm learning in spare time. HBQT is your wrapper 1:1 of Qt, AFAIK. So the help and documentation of Qt should be valid except for the differences between C++ and Harbour class. No? http://doc.qtsoftware.com/4.5/index.html How to set

Re: RE: [Harbour] exit with switch and for each

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Horodyski Marek (PZUZ) wrote: This is not comparable. Exit was escape from loop without control expression, loop with control. Now, when mixed syntax switch and any while/for we still heve LOOP inside switch, but EXIT no longer. EXIT in the sense : escape from a loop.

[Harbour] Re: PrintFileRaw

2009-05-27 Thread Itamar Lins
Hi! Viktor, forgive me my fault again. Regards, Itamar M. Lins Jr. Szakáts Viktor harbour...@syenar.hu escreveu na mensagem news:eaea62e3-3a36-4f55-8e59-8b9a90517...@syenar.hu... Hi Itamar, It works here. Are you sure the printer name is a valid one? Brgds, Viktor On 2009.05.27., at 12:56,

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Szak�ts Viktor wrote: I've retested after your change, results below (two runs each), plus attached: new (r11148): HB_STRICT_ALIGNMENT: 38.83/39.28, 38.89/39.36 default: 39.72/40.14, 39.66/40.20 old (r11143/r11144): HB_STRICT_ALIGNMENT: 38.52/39.01,

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

2009-05-27 Thread alkresin
Revision: 11152 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11152view=rev Author: alkresin Date: 2009-05-27 12:36:29 + (Wed, 27 May 2009) Log Message: --- 2009-05-27 16:40 UTC+0300 Alexander Kresin alex at belacy.belgorod.su *

[Harbour] RE: hbformat a bit too eager to convert files

2009-05-27 Thread Chen Kedem
Alexander, It's fixed now Thank you. Chen. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour

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

2009-05-27 Thread druzus
Revision: 11153 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11153view=rev Author: druzus Date: 2009-05-27 13:12:13 + (Wed, 27 May 2009) Log Message: --- 2009-05-27 15:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) *

[Harbour] hbmk2 new extensions

2009-05-27 Thread Szakáts Viktor
Hi All, After a few days in SVN and actual usage (throwing out every stuff related to old make systems), I have to say I don't like the new extensions, so I'll revert them to original state in the next few days, unless there is some convincing input not to do so. .hbl is too limiting. After

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, I see a few new features under GCC: hbvmall, I see a new discussions about HB_STRICT_ALIGNMENT, etc. So, I decided to do some new speed tests BCC vs GCC. BCC was winning long time ago (before dlmalloc). Test conditions: - SVN 11150 - WinXP SP2 - default build + -DHB_FM_STATISTICS_OFF -

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Szakáts Viktor
Test conditions: - SVN 11150 - WinXP SP2 - default build + -DHB_FM_STATISTICS_OFF -DHB_FM_STATISTICS_OFF is the default now. - speedtest.exe BCC MinGW 4.4.0 Test execution69.58 / 73.9057.77 / 59.98 speedtst.exe size622592 1090648 (903680

Re: [Harbour] hbmk2 new extensions

2009-05-27 Thread Massimo Belgrano
My two cents for convincing you IMO is right having P for Project instead Parameter sound very good  Hbp for traditional project file and hbl,(hbc,hbx) for Library and other Common eXternal parameter I imvite other harobour use explain point of view more point on view more better harbour version

Re: [Harbour] hbmk2 new extensions

2009-05-27 Thread Szakáts Viktor
My two cents for convincing you IMO is right having P for Project instead Parameter sound very good Hbp for traditional project file and hbl,(hbc,hbx) for Library and other Common eXternal parameter I imvite other harobour use explain point of view more point on view more better harbour version

Re: [Harbour] hbmk2 new extensions

2009-05-27 Thread Mindaugas Kavaliauskas
IMO is right having P for Project instead Parameter sound very good Hbp for traditional project file and hbl,(hbc,hbx) for Library and other Common eXternal parameter .hbc doesn't tell much about the purpose (common what?). I do not know what common is, but it could be HarBour Config.

Re: [Harbour] hbmk2 new extensions

2009-05-27 Thread Viktor Szakáts
Good idea, thanks! Brgds, Viktor On Wed, May 27, 2009 at 5:09 PM, Mindaugas Kavaliauskas dbto...@dbtopas.lt wrote: IMO is right having P for Project instead Parameter sound very good  Hbp for traditional project file and hbl,(hbc,hbx) for Library and other Common eXternal parameter .hbc

Re: [Harbour] hbmk2 new extensions

2009-05-27 Thread Massimo Belgrano
I agree I was thinking Common configuration to multiple file 2009/5/27 Mindaugas Kavaliauskas dbto...@dbtopas.lt: IMO is right having P for Project instead Parameter sound very good  Hbp for traditional project file and hbl,(hbc,hbx) for Library and other Common eXternal parameter .hbc

[Harbour] Why array is passed by reference?

2009-05-27 Thread Rossine
Hello, How to do that which in the example below, the element 1 of aVar[1] is not changed? [CODE] FUNCTION MAIN local aVar1 := { 1, 2, 3 } local aVar2 aVar2 := avar1 aVar2[1] := 5 ? aVar1[1]Here return 5 . Why ? ? aVar1[2] ? aVar1[3] RETURN NIL [ENDCODE] Best Regards, Rossine. --

Re: [Harbour] hbmk2 new extensions

2009-05-27 Thread Viktor Szakáts
Thanks for the idea to both of you. Brgds, Viktor On Wed, May 27, 2009 at 5:39 PM, Massimo Belgrano mbelgr...@deltain.it wrote: I agree I was thinking Common configuration to multiple file 2009/5/27 Mindaugas Kavaliauskas dbto...@dbtopas.lt: IMO is right having P for Project instead

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Mindaugas Kavaliauskas wrote: I see a few new features under GCC: hbvmall, I see a new discussions about HB_STRICT_ALIGNMENT, etc. So, I decided to do some new speed tests BCC vs GCC. BCC was winning long time ago (before dlmalloc). Test conditions: - SVN 11150 - WinXP

Re: [Harbour] Why array is passed by reference?

2009-05-27 Thread Rossine
Hi, I Solved the problem with aclone() [CODE] FUNCTION MAIN local aVar1 := { 1, 2, 3 } local aVar2 aVar2 := aclone( avar1 ) aVar2[1] := 5 ? aVar1[1] Now return 1 ? aVar1[2] ? aVar1[3] RETURN NIL [ENDCODE] Best Regards, Rossine. -- View this message in context:

Re: [Harbour] Why array is passed by reference?

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Rossine wrote: Hi, How to do that which in the example below, the element 1 of aVar[1] is not changed? [CODE] FUNCTION MAIN local aVar1 := { 1, 2, 3 } local aVar2 aVar2 := avar1 After simple assignment by := both variables points to the same array body. aVar2[1] :=

RE:[Harbour] Set Color Foreground and Background in TQLabel and others ?

2009-05-27 Thread Bruno Luciani
HI XAVI Yes I know that, reading QT documentation I found that I can do this : oLabel2 := QLabel():New( QT_PTROF( oWnd ) ) oLabel2:SetTextFormat(1) //0 text plain 1 RichText oLabel2:SetText( font color='Red'Label Using HBQT/font ) oLabel2:Move( 30 , 30 ) oLabel2:ReSize( 200,30

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, But then I created windows binaries of speedtst.exe for both compilers also compiled with -gc2: 1) BCC: size:600576 execution time: 33.38 / 33.60 2) MinGW: size:882688 (striped) execution time: 21.99 / 22.15 So BCC gives ~50

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Xavi
Mindaugas, I don't have test this version. Have you tried to -Os and linker with -s? It's like I get better results in size with 3.4.5 http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html What parameters are you using for compiler speedtest? Xavi Mindaugas Kavaliauskas escribió:

Re: [Harbour] Why array is passed by reference?

2009-05-27 Thread Rossine
Hello Przemek, Przemyslaw Czerpak-2 wrote: After simple assignment by := both variables points to the same array body. aVar2[1] := 5 ? aVar1[1]Here return 5 . Why ? because both vars uses the same array after above assignment. If you do not like it and you want to make full

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Mindaugas Kavaliauskas wrote: Hi, But then I created windows binaries of speedtst.exe for both compilers also compiled with -gc2: 1) BCC: size:600576 execution time: 33.38 / 33.60 2) MinGW: size:882688 (striped)

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

2009-05-27 Thread Jarosław Kądzioła
Hi Viktor, Wednesday, May 27, 2009, 10:50:01 AM, zou wrote: VS I'm not sure what's happening here, I've tried this from the command line VS and it didn't give the error, so I guess it has something to do with some VS properties of the embedded compiler. Or maybe I'm missing something VS

Re: RE:[Harbour] Set Color Foreground and Background in TQLabel and others ?

2009-05-27 Thread Pritpal Bedi
Hello Bruno Bruno Luciani wrote: But in QT Exist 2 classes that I don' t find in HBQT Qcolor and QPalette that controls colors in the majority of controls In another problem , how I can implement this pointer list in harbour list Header1 Header2 header3 This is used in C and

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, Thank you, binaries in attachment sent to your private mail. Please inform me if you received them. Yes, I've received. But I can not test it. It do nothing (0% CPU usage) if I do not keep [Enter] key pressed. If I keep [Enter] pressed, tests are performed. The same for all 3 your

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Xavi
Sorry to jump into. I do not know what happens but it seems that the mail is deferred. :) Wow! I did not expect to be such a big difference in exe size (496KB vs 882KB) if different optimisation is used. -- Xavi ___ Harbour mailing list

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Xavi wrote: I don't have test this version. Have you tried to -Os and linker with -s? It's like I get better results in size with 3.4.5 http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html What parameters are you using for compiler speedtest? I have not tried or used any

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Mindaugas Kavaliauskas wrote: Yes, I've received. But I can not test it. It do nothing (0% CPU usage) if I do not keep [Enter] key pressed. If I keep [Enter] pressed, tests are performed. The same for all 3 your executables. This made me think about some gt problems.

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, I do not think it's a fair test condition for your executables by flooding it with [Enter], but here are the times: C:\harbour\__tst__spd-bcc-gc2.exe 64.44 / 67.44 C:\harbour\__tst__spd-mgw-gc2.exe 53.03 / 55.47 C:\harbour\__tst__spd-mgw-gc2-Os.exe65.92 / 69.02 and my:

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
One more time: speedtst_bcc_gc2.exe 64.97 / 68.08 speedtst_gcc_gc2_strip.exe 55.44 / 56.44 (old .exe, no -l option) speedtst_bcc_gc3.exe 68.13 / 71.20 ... Should be: speedtst_bcc_gc2.exe 64.97 / 68.08 speedtst_gcc_gc2_strip.exe 55.44 / 56.44

[Harbour] How Benchmark a rdd for shared access?

2009-05-27 Thread Massimo Belgrano
The idea is Benchmark the performance of a generic a rdd (with or without index support) Counting how many record for secs have processed for append,skip,index,seek,set filter How possible Measure in Kbps read and write? Is possible measure concurrent access for skip test using MultiThread is

[Harbour] Possible release next harbour version RC1 release?

2009-05-27 Thread Massimo Belgrano
Possible release next harbour version RC1 release? -- Massimo Belgrano ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Mindaugas Kavaliauskas wrote: Hi, Your exe is still a little bit smaller. Maybe just because of different GT. It also effect the size but not only. See below. Why I do need to stuff GTSTD with keyboard events, to make application work? Probably there is sth wrong

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, Why I do need to stuff GTSTD with keyboard events, to make application work? Probably there is sth wrong with this code: #elif defined( HB_IO_WIN ) if( !pGTSTD-fStdinConsole || WaitForSingleObject( ( HANDLE ) hb_fsGetOsHandle( pGTSTD-hStdin ), 0 ) == 0x ) {

[Harbour] Set Color Foreground and Background in TQLabel and others ?

2009-05-27 Thread Bruno Luciani
Ok Pritpal , thanks for that In this moment I don' t remember anyone more but in case i need , I tell you. Another thing That I need are many samples 1: Howto define a label control inside a TAB page ( this maybe usefull in other controls too ) 2: Howto Define a Pushbutton in mainwindow that

Re: [Harbour] gcc 4.4.0 warnings

2009-05-27 Thread Mindaugas Kavaliauskas
Hi, WaitForSingleObject() works OK for a few calls, but later it says we have data... We are not alone. These seems to be useful: http://www.tech-archive.net/Archive/VC/microsoft.public.vc.language/2006-07/msg00320.html http://tech.groups.yahoo.com/group/zepp/message/819 This fixes the

[Harbour] Revision 11153 - ../../wvgwin.c:2059: error: `GCLP_HBRBACKGROUND' undeclared (first use in this function)

2009-05-27 Thread Vailton Renato
I am getting some errors with the latest release of SVN to compile it with MinGW ( from Qt package), see details : ../../wvgwin.c: In function `HB_FUN_WVG_SETCURRENTBRUSH': ../../wvgwin.c:2059: warning: implicit declaration of function `SetClassLongPtr' ../../wvgwin.c:2059: error:

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

2009-05-27 Thread vouchcac
Revision: 11154 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11154view=rev Author: vouchcac Date: 2009-05-28 03:10:05 + (Thu, 28 May 2009) Log Message: --- 2009-05-27 20:08 UTC-0800 Pritpal Bedi (prit...@vouchcac.com) * contrib/gtwvg/wvgwin.c

Re: [Harbour-users] How to compile

2009-05-27 Thread harbour-users
Ok , I am learning like you You need to get all Harbour Stuff , including hbmk2 , but think that is no stable Hbmk2 is not your solution to use mysql , only a better way to compile easily hbmk2 permit to you to compile multiple prg and link the needed library you need to link hbmysql lib in

Re: [Harbour-users] How to compile

2009-05-27 Thread harbour-users
Take a look to http://www.harbour-project.org/ http://www.harbour-project.org/samples.html Bruno 2009/5/27 harbour-users@harbour-project.org How do i get hbmk2 from SVN harbour version? I'm trying to connect to a mysql server with the prospect of using harbour as batch processor for