[Harbour] From xHarbour to Harbour: need some infos
I finnaly had the ok to complete the port from a clipper application to a more modern compiler. In these last years I ported the application to xHarbour using hbmake and now I think I have to move to hbmk2. where can I find some infos about hbmk2 file syntax ? I created some basic .hbm files but I also saw more complex build files that can run across different compilers and OS I'm using BCC 5.5 is it ok ? should I move to another compiler ? Thanks. Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] From xHarbour to Harbour: need some infos
Thank you very much to everybody. I'm reading your answers. I will do some testing now with bcc because I have it installed now. I also have different versions of MSVC installed in the several pc I use... I should settle on one version... or switch to mingw that I already installed once, some time ago... It would be very kind of you to let me know which version of Harbour should I use for production quality software... it is 100% standard clipper code, to which I added support for win32prn (I use win32prn and PdfCreator to create pdf... any better way ??) and I will need to add support for sending e-mail (the pdf created) and fill some data in a Word document Thanks, Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] From xHarbour to Harbour: need some infos
Viktor, a couple of questions, if possible. Is it possible to read some documentation about hbm / hbp files ? Is it possible to specify to call another instance of hbmk2 to, for example, create a library if it not present ? I can't understand if hbmk2 actually works like a unix make, comparing date/time of obj and source file and compiling only when necessary... Thank you, Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] From xHarbour to Harbour: need some infos
>> Is it possible to read some documentation about hbm / hbp files ? > > BTW few days ago I listed few places where docs is scattered (INSTALL, > RELNOTES, ChangeLog, hbmk2 --help was the list AFAIR) In the meantime I read the --help and is very complete... Sorry to have asked. I will look for infos about the differences between hbm, hbp and hbc... (I'm using 2.0.0beta2 and I read about a chenge in extension names...) >> Is it possible to specify to call another instance of hbmk2 to, for >> example, create a library if it not present ? > > You can call hbmk2 with multiple projects: >> hbmk2 mylib1.hbp mylib2.hbp myapp.hbp > (order is significant) Ok, this is good... from a message I found on google, it is not possible to put a mylib2.hbp in myapp.hbp Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] From xHarbour to Harbour: need some infos
Ok, compiled and linked the main program, 148 files in 12 sub-directories, plus 2 libraries for a total of other 28 files I needed to add hbwin (for win32prn) and xhb for txmldocument I will test the executable tomorrow Thank you everybody for your nice help ! Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] From xHarbour to Harbour: need some infos
>> Ok, this is good... from a message I found on google, it is not >> possible to put a mylib2.hbp in myapp.hbp > > This is true. You must use separate .hbp files for each > target binaries. However, you can move common parts to > either a .hbm or .hbc file, and include this file into all of > your .hbp files. Ok, thanks... now I just miss which are the differences between hbm/hbp/hbc... :-) I'm going to read the docs you pointed me to yesterday... thanks, Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] From xHarbour to Harbour: need some infos
One more question: is it possible to specify dependencies ? screen.prg includes screen.ch... if screen.ch changes screen.prg should be recompiled... Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Fwd: [Viktor] Suggestions on How to Get Help
I just joined the harbour community after a long time in xHarbour (and hwgui)... I'm willing to contribute in some ways but I don't know where to post code snippets/howto and other stuff For example I'm going to install mingw one of these days and I may create a small how-to with updated infos... but then, where to post it ? Here ? Probably a wiki is the best solution... ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] hbvpdf is "broken" ?
Well, it compiles and it works... but there are some strangeness in the code ) Start with this code snippet: #ifdef __XPP__ METHOD tPdf:SetLPI(_nLpi) #else METHOD SetLPI(_nLpi) #endif local cLpi := alltrim(str(_nLpi)) DEFAULT _nLpi TO 6 cLpi := iif(cLpi$"1;2;3;4;6;8;12;16;24;48",cLpi,"6") ::aReport[ LPI ] := val( cLpi ) ::PageSize( ::aReport[ PAGESIZE ] ) RETURN _nLpi is used BEFORE assigning it a default value... then ::PageSize( ::aReport[ PAGESIZE ] ) is called, but this method has no use of LPI ! ) SetLPI is called only once in the code, here: ::PageSize( _cPageSize ) // sets page width and height ::PageOrient( _cPageOrient ) // sets page orientation and the CALLS PageSize... correctly because you may have rotated the paper ::SetLPI( _nLpi ) // sets the LPI and then CALLS PageSize but the results doesn't change because LPI value is not used Probably a refactoring could be: ::SetLPI( _nLpi ) // removing the call to PageSize ::PageOrient( _cPageOrient ) // sets page orientation AND CALLS PageSize... since PageOrient is a public method, it is correct that it calls correctly because you may have rotated the paper But since PageOrient is PUBLIC, I can call it also in the middle of a page can I ? Later I will try the effect A better refactoring could be: ::SetLPI( _nLpi ) // removing the call to PageSize make PageOrient a PROTECTED method (it's called only once) ::PageOrient( _cPageOrient ) ::PageSize( _cPageSize ) ) What puzzled me the most, I spent some time trying to understand why my A4 pdf looked strange when I called PageSize( "A4") and found this code: METHOD PageSize( _cPageSize ) #endif local nSize, aSize := { { "LETTER",8.50, 11.00 }, ; { "LEGAL" ,8.50, 14.00 }, ; { "LEDGER", 11.00, 17.00 }, ; { "EXECUTIVE", 7.25, 10.50 }, ; { "A4",8.27, 11.69 }, ; { "A3", 11.69, 16.54 }, ; { "JIS B4", 10.12, 14.33 }, ; { "JIS B5",7.16, 10.12 }, ; { "JPOST", 3.94, 5.83 }, ; { "JPOSTD",5.83, 7.87 }, ; { "COM10", 4.12, 9.50 }, ; { "MONARCH", 3.87, 7.50 }, ; { "C5",6.38, 9.01 }, ; { "DL",4.33, 8.66 }, ; { "B5",6.93, 9.84 } } DEFAULT _cPageSize TO "LETTER" nSize := ascan( aSize, { |arr| arr[ 1 ] = _cPageSize } ) IF nSize == 0 .or. nSize > 2 // HERE IS THE PROBLEM. nSize := 1 ENDIF It seems that I can only have LETTER pdf So, after a couple of days spent on this library that looked interesting, I think I will give up it may have some other "hidden" features... What's your idea ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf is "broken" ?
On Fri, Nov 13, 2009 at 12:23 AM, Pritpal Bedi wrote: > > Hi > > > francesco perillo-2 wrote: >> >> So, after a couple of days spent on this library that looked >> interesting, I think I will give up it may have some other >> "hidden" features... >> >> What's your idea ? >> > > Probably you never read about the origin of the library and its passage > through this level. I suggest you to do so. No, I didn't... It cames from a library that should be called pdf006 I just went to the repository and checked the last few commits that were just cosmetic > It is upto you to accept or discard. You just "looked" into it for two days > and tired... I tried to include the library in my really-simple printing engine. I already create pdf printing on PdfCreator but I was looking for a way to simply create a pdf and saving it to a file without interacting with the OLE interface of Pdfcreator. I was committed to this library ! > I had spent many nights to give it a shape off a more > cumbersome procedural code, surely I enjoyed all that time. I thank you for your work ! It's important to have a pdf library that is all in harbour code !!! It can work on linux too ! Haru is a lot of c code and some seems to be very windows specific... I'm not saying you did something wrong... the procedural code has the same problems ! And probably you are in a country where LETTER paper format is used > So the difference is in "constructive" vs "recreational" approach. Allways constructive ! I was asking if somebody was using this code in production software ! I'm going back to the PdfCreator way but if it won't work as planned I have to switch back to hbv o hbp and I personally prefer hbv because it can help me on the linux side.. What I fear is that I may clean up this code, these couple of errors... but there may be some others Is anybody using this library ? > Hope you understand what I mean. Sorry if you thought this was an attack, it wasn't... it was more a I don't know how to say in english... it was like the crying of a children when his ice-cream fell off on the road... I really wanted to use it Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf is "broken" ?
> hbvpdf is outdated beyond repair. But it seems to be the only library that can be used on linux... there may be others I don't know,,, of course > Try hbhpdf. Thanks, but I'm going back to PdfCreator at the moment Code was 90% ready Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf is "broken" ?
Really good news indeed ! Ok, I now agree with you, hbvpdf may be removed if nobody actually use it ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Does anybody have a mercurial repository ?
I use Mercurial as my versioning tool... I'm trying to convert trunk from svn to hg but it seems to last forever... Is a mercurial repository available ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Bug in compiling trunk with bcc
I had to rem this line in config\win\global.mk to compile succesfully in bcc 5.5 # SYSLIBS += kernel32 user32 ws2_32 advapi32 gdi32 bcc has no kernel32.lib and the other ones I know that I should not use bcc (features and speed) but it's listed as supported... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Bug in compiling trunk with bcc
Viktor, you are right as usual On Sun, Nov 15, 2009 at 1:25 AM, Viktor Szakáts wrote: >> I had to rem this line in config\win\global.mk to compile succesfully in bcc >> 5.5 >> # SYSLIBS += kernel32 user32 ws2_32 advapi32 gdi32 >> >> bcc has no kernel32.lib and the other ones > > This is not true. All of them are present in PSDK dir, > which is part of BCC 5.5 kit. Yes there are. > If it doesn't work for you pls post your env and error, Error: bcc32.exe -I. -I../../../../../include -q -tWM -w -w-sig- -Q -d -6 -O2 -OS -Ov -Oi -Oc -onortl.obj -c ../../../nortl. c ../../../nortl.c: tlib.exe /P128 "..\..\..\..\..\lib\win\bcc\hbnortl.lib" -+nortl.obj TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation Warning: 'nortl' not found in library bcc32.exe -I. -I../../../../../include -q -tWM -w -w-sig- -Q -d -6 -O2 -OS -Ov -Oi -Oc -ohbpp.obj -c ../../../hbpp.c ../../../hbpp.c: bcc32.exe -I. -I../../../../../include -q -tWM -w -w-sig- -Q -d -6 -O2 -OS -Ov -Oi -Oc -ohbpp_dyn.obj -DHB_DYNLIB -c ../../../hbpp.c ../../../hbpp.c: bcc32.exe -q -tWM -w -w-sig- -Q -d -6 -O2 -OS -Ov -Oi -Oc -L../../../../../lib/win/bcc -e..\..\..\..\..\bin\win\bcc\h bpp.exe hbpp.obj ../../../../../lib/win/bcc/hbnortl.lib ../../../../../lib/win/bcc/hbcommon.lib kernel32.lib user32.lib ws2_32.lib advapi32.lib gdi32.lib Fatal: Unable to open file 'KERNEL32.LIB' win-make[3]: *** [hbpp.exe] Error 1 rm hbpp.obj win-make[2]: *** [descend] Error 2 win-make[1]: *** [pp] Error 2 win-make: *** [src] Error 2 As you can see, kernel32 is listed and since my bcc32.cfg is -I"c:\dev\l\bcc55\include" -L"c:\dev\l\bcc55\lib" it's not found I now added -L"...\psdk" and works I'm only a bit puzzled about the fact that removing that libraries it compiles, links and works. Thanks, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] OLE objects syntax...
I have an OLE object (PdfCreator, a pdf printer driver for windows) that among other methods has the followings: Public Property Get cOption(ByVal PropertyName As String) As Variant Public Property Let cOption(ByVal PropertyName As String, ByVal Value As Variant) Public Property Get cVisible() As Boolean Public Property Let cVisible(ByVal Value As Boolean) My xHarbour code was: object:cVisible( .T.) and in Harbour object:cVisible := .T. In Harbour I can: ? object:cOption("property") and have the correct value but I don't know how to set that value ! object:cOption("property") := .T. is not accepted by the compiler, object:cOption("property", .T.) is a run-time error Is there another way to set this value ? It may also be a problem of the OLE object, since I oAS:Cells( 7, 1 ):Value := "Timestamp:" but this has the :Value part. and the compiler accepts it Thanks, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Bug in compiling trunk with bcc
>> I now added -L"...\psdk" and works > > Yes, this is the key. > > Upgrade to latest SVN and PSDK dir is added automatically > by the build process. I'm at the tip Harbour 2.0.0beta3 (Rev. 12877) I only set HB_COMPILER=bcc (since I have a couple others installed) Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Bug in compiling trunk with bcc
I know that this list is perhaps not the correct one I hope you will forgive me :-) Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] OLE objects syntax...
Here it is, save it as sample.prg, compiling is with these lines (the first one doesn't compile...) Comments and error messages in the code... hbmk2 sample.prg xhb.lib hbwin.lib -ofirst1 -dFIRST1 hbmk2 sample.prg xhb.lib hbwin.lib -ofirst2 -dFIRST2 hbmk2 sample.prg xhb.lib hbwin.lib -osecond -dSECOND Thank you Francesco sample.prg PRIVATE oPdfApp PRIVATE oPdfOptions // CREATE THE MAIN OBJECT IF ( oPdfApp := win_oleGetActiveObject( "PDFCreator.clsPDFCreator" ) ) == NIL IF ( oPdfApp := win_oleCreateObject( "PDFCreator.clsPDFCreator" ) ) == NIL Alert( "ERROR! PDFCreator.clsPDFCreator not available. [" + Ole2TxtError()+ "]" ) quit ENDIF ENDIF // CREATE AN HELPER OBJECT IF ( oPdfOptions := win_oleGetActiveObject( "PDFCreator.clsPDFCreatorOptions" ) ) == NIL IF ( oPdfOptions := win_oleCreateObject( "PDFCreator.clsPDFCreatorOptions" ) ) == NIL Alert( "ERROR! PDFCreator.clsPDFCreatorOptions not available. [" + Ole2TxtError()+ "]" ) RETURN NIL ENDIF END // SET SOME PARAMETERS FOR THE MAIN OBJECT oPdfApp:cVisible := .T. oPdfApp:cStart("/NoProcessingAtStartup" , .T. ) oPdfApp:cPrinterStop := .T. // HERE STARTS THE PROBLEM ! // // FIRST SOLUTION: // Public Property Get cOption(ByVal PropertyName As String) As Variant // Public Property Let cOption(ByVal PropertyName As String, ByVal Value As Variant) #ifdef FIRST1 oPdfApp:cOption( "UseAutoSave" ) := 1 // Compiler error #endif #ifdef FIRST2 oPdfApp:cOption( "UseAutoSave" , 1 ) // runtime error #endif // // Error BASE/3012 Argument error: COPTION // Called from WIN_OLEAUTO:COPTION(0) // Called from SAMPLE(42) // // SECOND SOLUTION: // use the helper object to set the value, then assign the helper object // to a member of the main class // Public Property Set cOptions(ByVal Options1 As clsPDFCreatorOptions) // #ifdef SECOND oPdfOptions:UseAutoSave := 1 // it's ok // BUT THEN I NEED TO ASSIGN oPdfApp:cOptions := oPdfOptions // runtime error // Error BASE/3012 Argument error: _COPTIONS // Called from WIN_OLEAUTO:_COPTIONS(0) // Called from SAMPLE(60) #endif oPdfApp:cClearCache() oPdfApp:cDefaultPrinter := "PDFCreator" oPdfApp:cPrinterStop := .T. oPdfApp:cClose() ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Edit Compile Debug in visual cycle
Why not Eclipse ? I had a half day introductionary course last week and it seems to be a great tool I saw the Java setting and it was terrific.. ! >> 0) Availability on OS X, Linux and Windows x86 and x64. Yes >> 1) Very good editor with block editing capability, syntax >> highlighting, possibly "intellisense". Project-wide >> search and replace. Yes >>Support for all CPs Harbour supports. Should have >> ( syntax highlighting for: prg, c and cpp ) It has for sure for c and cpp, prg can be added >> 2) Integration with VCS. Integration with cvs, svn, mercurial git and others >> 3) Integrated build tool. > 3.1) Integrated debugger. Yes, to be programmed >> 4) Integrated project management. Yes. The power of Eclipse is that it is really configurable ! Support for new languages may be added... but I don't know if the processo is easy or not Francesco > > Best regards, > István > > > ___ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Edit Compile Debug in visual cycle
> Question: Does anybody have some experiences on language > integration into Eclipse? Unfortunately I don't have such experience. I'm going to attend a couple of other courses in the next weeks about basic java programming and we are going to use Eclipse. The teacher (a university teacher) is a real expert and a open-source supporter and evangelist... I may ask him some help... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] OLE objects syntax...
> This can be solved by using "_" in front of method to force > DISPATCH_PROPERTYPUT. So, > oPdfApp:_cOption( "UseAutoSave" , 1 ) > do the job. Yes, it does. Thank you ! I still have problems with 100% cpu load when I call ::cClose() but I'm investigating on this Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] OLE objects syntax...
> > I still have problems with 100% cpu load when I call ::cClose() but > I'm investigating on this It seems that I have this problem only in the demo program... I will investigate i f possible... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Qt 4.6rc1 and Snow Leopard
I also would like to compile and test Qt support... any doc ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] A small analysis of hb_sendmail
Harbour trunk of a couple of days ago, compiled with bcc 5.5 Using hb_sendmail() I get in the mail server log: 2009-11-19 23:09:57 SMTP connection from [X] (TCP/IP connection count = 1) 2009-11-19 23:09:58 SMTP protocol synchronization error (input sent without waiting for greeting): rejected connection from H=YY [XX] input="EHLO tipClientSMTP\r\nQUIT\r\n" This means that hb_sendmail->TipClientSMTP -> TipClient are sending bytes before the server introduces itself with a 220 message that I believe is mandatory ! The server can be out of service and can announce itself with a 5xx error So it looks like there is a missing ::GetOk() in OpenSecure and Open Something like: METHOD Open( cUrl, lTLS ) CLASS tIPClientSMTP IF ! ::super:Open( cUrl ) RETURN .F. ENDIF IF ! ::GetOk() // Wait for the inital banner from the server RETURN .F. ENDIF DEFAULT lTLS TO .F. If I set timeouts to 10 seconds (1 second is way to low as a default, btw) add this code to Open and OpenSecure everythings seems to work But looking at some debug output I put in the code, there is something strange In OpenSecure: 0081196.01771545[428] InetSendAll: EHLO tipClientSMTP 0082196.04241943[428] GetOk: 250- Hello XXX [XXX] 0083196.04264832[428] GetOk: 250-SIZE 33554432 0084196.04287720[428] GetOk: 250-PIPELINING 0085196.04298401[428] GetOk: 250 HELP "250-" means that there are more 250 codes coming "250 " means it is the last one... 0086206.04336548[428] GetOk: 0087216.04341125[428] GetOk: A couple of GetOk that end in timeout... 20 seconds later... 0088216.04345703[428] InetSendAll: QUIT Then in Open: 0092217.12054443[428] InetSendAll: HELO tipClientSMTP 0093217.14497375[428] GetOk: 250 mail.tours.it Hello adsl203-144-114.mclink.it [213.203.144.114] The server answers immediately but the program waits 10 seconds (the timeout) in another GetOk which one !? 0094227.16149902[428] GetOk: 0095227.16178894[428] InetSendAll: MAIL FROM: 0096227.18704224[428] GetOk: 250 OK 0097227.18734741[428] InetSendAll: RCPT TO: 0098227.21192932[428] GetOk: 250 Accepted Here it seems to be ok, also after the DATA part So I added: ELSEIF "PLAIN" $ oInMail:cReply lAuthPlain := .T. #if defined( HB_HAS_OPENSSL ) ELSEIF "STARTTLS" $ oInMail:cReply lAuthTLS := .T. #endif ELSEIF Left( oInMail:cReply, 4 ) == "250 " EXIT ENDIF ENDDO Some rows later, I remmed this loop since it does nothing... and GetOk() is already called in Open()... It works OK as a proof of concept but here the server is responding to a HELO message and there MAY be multiline 250 messages, like for EHLO message... // DO WHILE .T. //IF ! oInMail:GetOk() // EXIT //ENDIF //IF oInMail:cReply == NIL // EXIT //ENDIF // ENDDO It's too late this evening, tomorrow I will change this part to a loop that checks for "250 " starting to check from tha already filled cReply (for one line 250) FINALLY: there are some small problems in hb_sendmail implementation... and the first one that started my review should create problems to almost every user that connect to a non-local mail server. - it doesn't fully respect handling return codes (it doesn't understand when there are no more replies to wait for) - it's said that User/Password/pop3 server are mandatory but I didn't specifieed them (I don't need them!) - I believe lAuth default value should be set depending on the presence of User/password... but I should study the code a bit more Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] To Pritpal about hbide
Hi, I was told that hbide will integrate support for svn... Since I'm an user of Mercurial I'd like to talk with you to cooperate to add support for this dvcs... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Please try this sendmail patch
Is anybody using hb_sendmail() ? I already said that it is not fully smtp protocol compliant and my tests (trunk compiled with bcc) didn't worked at all due to this incoorect protocol implementation So, if you are using this patch and it works ok for you, please tell me ! If it works for you or doesn't, please test this patch in contrib\hbtip and report. Thanks, Francesco Index: smtpcli.prg === --- smtpcli.prg (revision 12954) +++ smtpcli.prg (working copy) @@ -96,10 +97,11 @@ bTrace := {| cMsg | iif( PCount() > 0, oLog:Add( cMsg ), oLog:Close() ) } ENDIF ::super:New( oUrl, bTrace, oCredentials ) ::nDefaultPort := iif( ::oUrl:cProto == "smtps", 465, 25 ) - ::nConnTimeout := 5000 + ::nConnTimeout := 5 ::nAccessMode := TIP_WO // a write only RETURN Self @@ -110,6 +112,10 @@ RETURN .F. ENDIF + IF ! ::GetOk() + RETURN .F. + ENDIF + DEFAULT lTLS TO .F. IF lTLS @@ -129,6 +135,10 @@ RETURN .F. ENDIF + IF ! ::GetOk() + RETURN .F. + ENDIF + DEFAULT lTLS TO .F. IF lTLS ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Please try this sendmail patch
Hi Bruno, thank you for your reply. I have some ideas ... can you please show me how do you call hb_sendmail() ? can you please compile and run contrib/hbtip/tests/gmail.prg (after changing the data inside) and run it ? Which are your operating system and compiler used ? Thank you Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Please try this sendmail patch
> I am not using SSL > I use it in windows in an OOHG aplication , and compiled using Mingw ok > > hb_sendmail('200.xxx.xxx.xxx',,'f...@domain',{'adre...@domain','adre...@domain'},,,cuerpo,'Cierre > de caja') Is it possible to have (in private mail) the IP of the server and an address I can send some test mails to ? In the meanwhile I will also try to install mingw > When I have some time for tests I try gmail.prg Don't lose time if you don't have openssl installed Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Please try this sendmail patch
gmail only supports SSL mail or TLS on port 25... in my bcc setup I don't have openssl so I can't connect to gmail (at the moment) Do you have a server you connect without authentication on port 25 for mail delivery ? Does it work for you ? Standard timeout is 1 second... gmail is quick but I'm thinking to switch to another system creating the mail file on disk and run an external to do the delivery Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Please try this sendmail patch
At the moment I tried hb_sendmail against exim without any form of authentication, just plain old clear-text smtp I will try Qmail and other servers this evening but I have to remove the patch first... The "problem" is that hb_sendmail() sends the EHLO or HELO command without waiting for the 220 "here I am" from the server... and they both refuse it Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Please try this sendmail patch
Viktor, I DID try to just raise timeouts and I did some more tests. My MTA is exim and it is very "strict" on the protocol. Try to issue this command: telnet 25 and you will get a "220 message" and ONLY IN THIS MOMENT you can issue commands ! Exim doesn't accept any command before the 220 is sent ! In the past, a lot of spam software did send the HELO without waiting for the 220 banner and exim killed them Gmail accepts the message without the patch and probably the same will happen with other MTAs I want to say that in a particular case (external antivirus + backend MTA) I have "220-message 1" "220 message 2" and if the backend is down I get a "5xx error message" > Second because GetOK() _is_ actually called after HELO and > EHLO requests in line 124 and 143. It is correct that it is called after HELO/EHLO ! But the reply must be correctly checked ! Finally, please try the patch Thanks, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] To Pritpal about hbide
I have to understand how to compile hbide (with Qt) before . :-) Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Since you are on win_prn subsystem...
I'd like to point out that the following text present in testprn.prg is false: oPrinter:TextOut("Notice: UNDERLINE only prints correctly if there is a blank line after",.T.) oPrinter:TextOut("it. This is because of ::LineHeight and the next line",.T.) oPrinter:TextOut("printing over top of the underline. To avoid this happening",.T.) oPrinter:TextOut("you can to alter ::LineHeight or use a smaller font") Infact you can use WIN_SETBKMODE to set background as transparent and you can "overprint" withour problems Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Book "Programming with Harbour"
Probably "Harbour internals" is a better title Unfortunately there are only 24 hours per day... and if Przemek writes the book, he can't work of getting Harbour better and better :-) Do you have an idea of how many people are currently using harbour for producing software that is "on sale" ? 10 ? 100 ? 1000 ? 1 million ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Short or long variable names ?
I'm doing some refactoring on really old old code. I have some 1 letter, no meaning, confusing variable names... I'd like to know if there is a "cost" associated with using longer variable names in PUBLIC, PRIVATE and LOCAL. Francesco PS: I know the cost in negligible nowadays... just curious ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Short or long variable names ?
> If you are asking about runtime speed overhead caused by longer variable > names then there is no difference if you are using shorter or smaller > variables names. LOCAL variable names are not stored in final binaries > at all (with the exception to code emitted for debugger with -b switch) For LOCALs, ok. They have a certain visibility and the compiler can create optimized code. For PRIVATE/PUBLIC... I can create these variables at runtime using macros or internal calls... > and PUBLIC, PRIVATE, FILED variables are not accessed by name but using > pointers to symbol table Sorry, just to have more infos.. Imagine a PUBLIC variable created at runtime; in this case the compiler can't refer directly to symbol table position but must lookup the variable name at runtime somehow... I may understand from your words that harbour creates a local symbol table with only the variable names and then does a "runtime binding" when entering the function in this way it can handle visibility PUBLIC/PRIVATE... In this way, in the pcode harbour only references "position 1 in the symbol table" and it will be runtime engine to fill it with correct values (or pointers to correct values) I imagine it is more complicated than this, I just wanted to validate the general idea Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Short or long variable names ?
Thank you very much for your clarification. Part of my code dates back to dBaseIII+ fully interpreted code... I'm thinking about a particular case... I will test it and in case I will ask you again... thank you again Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf
You can find it under examples directory. I want to tell you that hbvpdf works but has some "little problems"... for example only A3 form size is supported, pdf is not compressed and in clear-text and some other code strangeness... Look for a message from me dated 12 november... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf
Sorry, I wanted to say "LETTER" instead of A3. If you go in the source code you will see that if you specify a paper size differe from LEGAL or LETTER you will get LETTER. local nSize, aSize := { { "LETTER",8.50, 11.00 }, ; { "LEGAL" ,8.50, 14.00 }, ; { "LEDGER", 11.00, 17.00 }, ; { "EXECUTIVE", 7.25, 10.50 }, ; { "A4",8.27, 11.69 }, ; { "A3", 11.69, 16.54 }, ; { "JIS B4", 10.12, 14.33 }, ; { "JIS B5",7.16, 10.12 }, ; { "JPOST", 3.94, 5.83 }, ; { "JPOSTD",5.83, 7.87 }, ; { "COM10", 4.12, 9.50 }, ; { "MONARCH", 3.87, 7.50 }, ; { "C5",6.38, 9.01 }, ; { "DL",4.33, 8.66 }, ; { "B5",6.93, 9.84 } } DEFAULT _cPageSize TO "LETTER" nSize := ascan( aSize, { |arr| arr[ 1 ] = _cPageSize } ) IF nSize == 0 .or. nSize > 2 // HERE IS THE PROBLEM. nSize := 1 ENDIF If I am wrong please tell me - I tried to use this code and my invoices looked "different" in Acrobat reader... it was the paper size... ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf
> > But I probably know where is the problem: you're trying to use the > "class way" ( hbvpdft.prg ). Yes, I am using the class... When I found the first "problem" in the class code I went to the procedural and found the same "problem"... I didn't check every specific issue I had... > That file has been added time after the "original" code ( hbvpdf.prg ) > and I guess it has never been updated. It's strange to have one library with procedural and OO code with a lot of replicated code... it's easy to have them disaligned ! When I have such situations where I want to go OO using a procedural code base I usually create a thin OO layer as an interface, so that the "real" code is still one... > So if you still want to use hbvpdf I suggest to look at pdf_demo.prg > an forget the class code. Well, as I said in another thread I completed a small OLE interface to PdfCreator and it's ok at the moment. If I will need a pure Harbour pdf generator (to run on linux for example) I will look at the library based on Haru... it seems more complete and AFAIK it generates compressed pdf files... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf
On Mon, Nov 30, 2009 at 10:56 AM, Fernando Athayde wrote: > and change fonts, > sizes > spacing, ... > i solve in a moment, i copied hbvpdf fonts into my project, but i don´t see > why remove for contrib What do you mean "copied hbvpdf fonts" ??? ... sounds interesting... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbvpdf
> i copied hvpdf*.pdf and .ch into myproject > and functions perfectly now I understand... you copied the source files... not the fonts... >> i solve in a moment, i copied hbvpdf fonts into my project, but i don´t Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Error in mpkg_rpm.sh on opensuse 11.1 64bit
as root user on openSUSE 11.1 (x86_64) VERSION = 11.1 command: sh ./mpkg_rpm.sh ./bin/linux/gcc/hbrun --hb:gtcgi ./bin/postinst.prg ! Making /usr/bin/hbmk.cfg... ./bin/postinst.sh make: execvp: ./bin/postinst.sh: Permission denied make: *** [install] Error 127 error: Bad exit status from /var/tmp/rpm-tmp.17595 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.17595 (%install) ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Re: Error in mpkg_rpm.sh on opensuse 11.1 64bit
sorry, solved /bin/postinst.sh had no x mode bit... chmod a+x bin/*.sh solved... is it normal that I have .sh files without x bit ? I'm getting files from svn Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] A func(.=>.) like func(...) idea
or something like: myclass():new( top => 10, left => 20; text => text to print, enable =>.T. ), myclass():move( x => 5, y =>5 ) But how can the compiler or the runtime understand when you want to pass a string (in your case) or a hash (in my case) ? The positive on your side is that you can build the parameter string at runtime Well, actually in my case it's not really a hash... so perhaps the preprocessor can do some magic infact if the function is already defined and the preprocessor keeps the definition in memory it could do the magic... Or the job can be done by the compiler ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Wich way for easy switch to hbxhb?
Massimo, mi spieghi cosa è hbxbp ? Massimo, can you explain to me what's hbxbp ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Harbour 2.0 linux release search a releaser
I may try to build rpms for openSuse... I should have 3 or 4 opensuse versions available to build harbour on... I need to ask a question: if I install the mysql client and build harbour to activate mysql integration, the user that install that rpm must also have the mysql client installed ? I ask this because from what I understand, rpm building is now "monolithic", there is one rpm with all the stuff, mandatory or optional. So to be useful to everybody I should build a rpm with all the options included (mysql, ads...) But I imagine that for the users, to have these options working, they should also have the "clients" installed so I should set the "clients" as pre-requisites... but with these requirements I force everybody to install mysql client, ads client etc. Or better, I may build with every option set, but with no dependencies at all but if the client installation is required I will give the users the idea that mysql integration is available while it is not ... Another option would be to have the packages split: the first one, monolithic, is the "base" package, the "mandatory" one. All the optional packages have the "base" package as pre-requisite and each one has its own "client" pre-requistite... a bit like the php packaging... So every user may install the base package and the install only the optional that he needs Let me know your idea, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] I migrated... thank you !
I just want to tell you that last 28 Dec I finally migrated a company from a clipper 5.01 to a Harbour 2.0 application suite... the first migration commit in the applications VCS is dated december 2005... they kept postponing but I finally forced them to switch and everything went smooth... I want to say a big "THANK YOU" to all harbour developers for the powerfull tool they built. I also want to publicy thank Maurizio for the support and friendship he has given me in these months! Francesco HNYaaeeypprw I took the greetings from Ikea... now you have to build it yourself ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[13430] trunk/harbour
Thank you, I will try to build the rpm later today. Are these changed backported on the 2.0 branch ? Or I export the 2.0, the tip and manually copy from tip to 2.0 ? I'm not a svn user... (I usually use mercurial) Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[13434] trunk/harbour
I'm testing rpm builds on openSuse... it seems that -static- rpm must be installed... is it mandatory ? if yes, should it be included in the standard package ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] To Viktor about openSuse rpm
1) hbcplr in "static" I installed all the requirements (except ADS) and built the rpm. I installed the "lib" and the "base" package. If I try to compile a simple test program I get: # hbmk2 test.prg -trace hbmk2: Processing configuration: /usr/bin/hbmk.cfg hbmk2: Harbour compiler command (embedded): (/usr/bin/harbour) -n2 test.prg -i/usr/include/harbour Harbour 2.0.1dev (Rev. 13448) Copyright (c) 1999-2010, http://www.harbour-project.org/ Compiling 'test.prg'... Lines 3, Functions/Procedures 1 Generating C source output to 'test.c'... Done. hbmk2: C compiler command: gcc -c -O3 -Wall -W -I/usr/include/harbour test.c /tmp/hbmk_hjiv64.c hbmk2: Linker command: gcc test.o hbmk_hjiv64.o -Wl,--start-group -lhbcplr -lhbdebug -lharbour -Wl,--end-group -otest -L/usr/lib/harbour /usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld: cannot find -lhbcplr collect2: ld returned 1 exit status hbmk2: Error: Running linker. 1 gcc test.o hbmk_hjiv64.o -Wl,--start-group -lhbcplr -lhbdebug -lharbour -Wl,--end-group -otest -L/usr/lib/harbour hbcplr is not present in /usr/lib/harbour... it is in the "static" package... So I tried to compile -fullshared and -fixshared but I got the same error... So I installed the "static" rpm and hbmk2 test.prg compiled... I then tried to compile statically hbmk2 test.prg -fullstatic but I got hbmk2 test.prg -fullstatic hbmk2: Processing configuration: /usr/bin/hbmk.cfg Harbour 2.0.1dev (Rev. 13448) Copyright (c) 1999-2010, http://www.harbour-project.org/ Compiling 'test.prg'... Lines 3, Functions/Procedures 1 Generating C source output to 'test.c'... Done. /usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld: cannot find -lpcre collect2: ld returned 1 exit status hbmk2: Error: Running linker. 1 gcc test.o hbmk_q4tyoc.o -Wl,--start-group -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm -ldl -lrt -lpcre -lz -Wl,--end-group -static -otest -L/usr/lib/harbour 2) pcre pcre during compilation I get: ! Component: 'pcre' found in /usr/include and some lines later ! 'libpng' library skipped (unused) ! 'hbpcre' library skipped (unused) ! 'hbzlib' library skipped (unused) can't understand what happens well, I have the .so shared libraries installed and I probably don't have the static linkable ones but pcre is included in source form should I force using the internal pcre at compile time 3) harupdf /harbour/contrib/hbhpdf/tests # hbmk2 harupdf.prg hbmk2: Processing local make script: hbmk.hbm hbmk2: Processing configuration: /usr/bin/hbmk.cfg Harbour 2.0.1dev (Rev. 13448) Copyright (c) 1999-2010, http://www.harbour-project.org/ Compiling 'harupdf.prg'... Lines 2246, Functions/Procedures 18 Generating C source output to 'harupdf.c'... Done. /usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld: cannot find -lhbhpdf collect2: ld returned 1 exit status hbmk2: Error: Running linker. 1 gcc harupdf.o hbmk_prio4e.o -Wl,--start-group -lhbhpdf -llibhpdf -lpng -lhbct -lhbcplr -lhbdebug -lharbour -Wl,--end-group -oharupdf -L/usr/lib/harbour It should default to local copy... but library is not compiled Ciao, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Re: To Viktor about openSuse rpm
3bis) I installed the "contrib" package where harupdf is but I got another error: contrib/hbhpdf/tests # hbmk2 harupdf.prg hbmk2: Processing local make script: hbmk.hbm hbmk2: Processing configuration: /usr/bin/hbmk.cfg Harbour 2.0.1dev (Rev. 13448) Copyright (c) 1999-2010, http://www.harbour-project.org/ Compiling 'harupdf.prg'... Lines 2246, Functions/Procedures 18 Generating C source output to 'harupdf.c'... Done. /usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld: cannot find -llibhpdf collect2: ld returned 1 exit status hbmk2: Error: Running linker. 1 gcc harupdf.o hbmk_cwkl0s.o -Wl,--start-group -lhbhpdf -llibhpdf -lpng -lhbct -lhbcplr -lhbdebug -lharbour -Wl,--end-group -oharupdf -L/usr/lib/harbour 4) I was able to succesfully compile, link and run Qt samples (after installing the Qt package of course, hbide, hbxbp, hbqt) and cairo ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: To Viktor about openSuse rpm
I will start over later today. I want just to say that I did not use HB_*_INSTALL overrides when building rpm... It is true that I used HB_*_INSTAL in a previous "make; make install" style compilation that I used to check which files were compiled but it was in another terminal session The RPMs created are: harbour-2.0.1-devsus112.i586.rpm harbour-allegro-2.0.1-devsus112.i586.rpm harbour-cairo-2.0.1-devsus112.i586.rpm harbour-contrib-2.0.1-devsus112.i586.rpm harbour-curl-2.0.1-devsus112.i586.rpm harbour-firebird-2.0.1-devsus112.i586.rpm harbour-gd-2.0.1-devsus112.i586.rpm harbour-lib-2.0.1-devsus112.i586.rpm harbour-mysql-2.0.1-devsus112.i586.rpm harbour-odbc-2.0.1-devsus112.i586.rpm harbour-pgsql-2.0.1-devsus112.i586.rpm harbour-qt-2.0.1-devsus112.i586.rpm harbour-static-2.0.1-devsus112.i586.rpm harbour-lib contains the .so libraries harbour-static contains the .a libraries It seems that some .a libraries (like hbcplr.a) are needed also for linking the .so libraries I don't know if this is an Harbour requirement or hbmk2 requirement Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: To Viktor about openSuse rpm
On Sun, Jan 3, 2010 at 11:20 AM, Tamas TEVESZ wrote: > On Sun, 3 Jan 2010, francesco perillo wrote: > > > harbour-static contains the .a libraries > > doesn't suse name these kinds of packages -devel, like any > rpm system with good manners does? Well, I will check with other "compiler" packages ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: To Viktor about openSuse rpm
-devel packages include files that permit to extend core functionalities... python-devel: Include Files and Libraries Mandatory for Building Python Modules I don't agree to have a harbour-devel.. .gcc doesn't have a -devel... it has a "compiler package" taht includes almost everything... >From what I understand, harbour-lib MUST be installed on all systems that must run shared compiled Harbour programs. "core" and "static" are instead for programmers-only... I'd merge these two because "static" is required anyway if you compile a shared library ! Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: To Viktor about openSuse rpm
Hi Tamas, I'm not offended since I'm not the original author of the .spec files... I just wanted to help build the RPMs on Suse (both openSuse and SLE[D|S]) since I have several running systems at work and at home that I can use to do such builds. I was trying to understand how these builds worked and found some inconsistencies... and I reported them... > opensuse has some nice documentation on packaging at > http://en.opensuse.org/Packaging, especially for the currently > relevant topic of libraries at > http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy I will read them later... but I miss some infos on Harbour internals, libraries and dependencies I can't help too much... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] hbcppmm demoqt demoxbp hbide Qt4.6.0 MinGW GCC4.4.1 test
> For those interested in problem-free fixing of bugs in last > final release, 2.0.x branch was created at the time of the release, > and such work shall be done there. Volunteers may start it right > away by merging '[TOMERGE 2.0]' marked patches from trunk to > 2.0.x branch. This will ensure that users won't have to wait > for next major release to get any bugs fixed, but they can get > it much more quickly with 2.0.1. I wanted to start this process and since I'm a mercurial user I cloned the repository. I then started to examine the Changelog and it looks like that some commits have changes that must be ported and some that shouldn't I'm not a svn user... I will check the syntax.. .I imagine there is a svn diff (from revision) (to revision) and then import this patch into mercurial harbour 2.0 branch ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[13498] trunk/harbour
Some months ago I put this message on xharbour newsgroup - it was for xHarbour and I don't know if it is still valid... I was also fully criticized on using hb_dynsymFindName but this function really did its job also when loading/unloading DLLs... At the end of March I asked in this newsgroup if it was possible to check if a function was present (linked) in an exe during run-time. The answer was to use TYPE() and check if the result is UI or U I did this yesterday on my notebook and it worked... now on my dev pc it doesn't work I allways get UI So I created this little piece of code, studying the HB_ExecFromArray code: HB_FUNC( ISLINKED ) { char * szString = hb_parc( 1 ) ; if ( hb_dynsymFindName( szString ) ) hb_retl( TRUE ) ; else hb_retl( FALSE ) ; } Now you can use IsLinked( "FUNC" ) You CAN'T use IsLinked("FUNC()") so IsLinked IS NOT a direct replacement to TYPE... ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[13498] trunk/harbour
Viktor, the message was in the Xharbour mailing list, date november 2008, referring to a message of March 2008... it has nothing to do with Harbour... it was only to show that there should be a way not to use TYPE() but to query the HVM... I see now that in Harbour HB_ExecFromArray() uses other APIs but hb_dynsymFindName is still present in eval.c... so it SHOULD work >From a message exchange with an Xharbour developer in august 2009 hb_dynsymFindName was able to locate functions loaded from DLLs the programmer was so able to deliver to each client a different DLL with personalization of the program... one of the driving ideas was to load the DLL and call a specific mandatory function that returned all the menu items that were implemented by that DLL... ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] bug and patch for harupdf.ch, please review and apply
In harupdf.ch the following line (701) hb_retnl( ( long ) HPDF_Page_TextWidth( ( HPDF_Page ) hb_parptr( 1 ), hb_parc( 2 ) ) ); should be changed in hb_retnd( ( double ) HPDF_Page_TextWidth( ( HPDF_Page ) hb_parptr( 1 ), hb_parc( 2 ) ) ); since function definition in Haru library is: HPDF_EXPORT(HPDF_REAL) HPDF_Page_TextWidth (HPDF_Pagepage, const char *text); It now returns a integer value instead of a decimal one... and it kept breaking my column alignment Thanks Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[13616] trunk/harbour
> Log Message: > --- > 2010-01-17 10:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) > * contrib/hbhpdf/harupdf.c > ! HPDF_Page_TextWidth() fixed to return double instead of long. > As suggested by Francesco Perillo. Thank you. Shouldn't it be [TOMERGE2.0] ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] run/hb_run/win_rundetached/wapi_shellexecute
I've integrated Harupdf in my program. Haru creates a file and I wanted to open the satndard, system defined pdf viewer. I opted to the simplest command: run( ::pdfFileName ) This worked flawlessy in my XP pro development notebook, opening the Acrobat Reader window while the Harbour program was still running. This morning I run the program on the Win 2k VM at the users site to do some integration testing and at the run() command I got a annoying message talking about redirecting win32 debug message to the remote collector.. annoying but still ok, harbour program still running... I then run the code on my XP pro office development workstation and Acrobat opened but Harbour program was LOCKED till I closed Acrobat I then started to investigate: run, __run, hb_run all do the same, block Harbour win_rundetached return false but probably I didn't really understand parameters... and probably I can't pass a pdf filename but should pass an executable filename wapi_shellexecute(,,::pdfFileName ) DID WORK ! Is it normal to have this different behaviour in run( ) command ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: run/hb_run/win_rundetached/wapi_shellexecute
wapi won't work for sure in linux In linux, to have a really detached process I usually do a: at -f "/path/to/a/shell/script" now In this way I'm sure stdout,stderr,stdin are "free" at returns immediately and the daemon atq runs the detached job. Another way is to use: nohup /path/to/a/shell/script & > /dev/null 2>&1 I never run it from Harbour... but for example from php or other applications. ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] To Viktor, another patch for hb_sendmail
I got some complaints from users that mails were not delivered I then went to smtp logs and found strange behaviours. I dug again the code and found again that SMTP protocol is not implemented in the code... everything is based on timeouts and the idea that the server replies really really quickly (with a 1 second reply the server must be quick ) I then made these changes to adhere a bit more to the protocol...in order of chunks: - 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 I don't understand why it tries the EHLO first and then HELO because the same "basic" commands are valid in both cases... you should revert to HELO only if server (and it should be a REALLY OLD server) gives error on HELO... Instead it closes the transaction and open a new one ! Other issue is Open/OpenSecure... they differ only to HELO/EHLO parameter sent to server (so it should be a parameter) but EHLO is NOT only for "secure" connections, but a way to get server capabilities, like for example maximum mail size, and login/encription possibilities... Francesco Index: C:/download/harbour/harbour-trunk/contrib/hbtip/sendmail.prg === --- C:/download/harbour/harbour-trunk/contrib/hbtip/sendmail.prg (revision 13664) +++ C:/download/harbour/harbour-trunk/contrib/hbtip/sendmail.prg (working copy) @@ -135,7 +135,7 @@ lNoAuth := .F. ENDIF IF ! ISNUMBER( nTimeOut ) - nTimeOut := 1000 + nTimeOut := 1 ENDIF IF ! ISCHARACTER( cReplyTo ) cReplyTo := "" @@ -311,6 +311,8 @@ ELSEIF "STARTTLS" $ oInMail:cReply lAuthTLS := .T. #endif +ELSEIF Left( oInMail:cReply, 4 ) == "250 " +EXIT ENDIF ENDDO @@ -328,7 +330,7 @@ ENDIF ELSE IF ! lConnectPlain - oInmail:GetOk() + // oInmail:GetOk() lConnect := .F. ENDIF ENDIF @@ -359,6 +361,9 @@ ENDIF DO WHILE .T. + IF left( oInMail:cReply, 4 ) == "250 " +EXIT + ENDIF IF ! oInMail:GetOk() EXIT ENDIF ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] 2 little requests to commit-ters...
I'm preparing to do merging in 2.0 1) Please try to isolate commits with [TOMERGE 2.0] so we don't have, in a single commit, hunks that must be ported and hunks that shouldn't... I cherry-picked the commits (about 32 up to now) that should be ported and now I will try to expunge all the hunks that shouldn't be ported. Changelog should be a manual thing since the patch will never apply... Should I create a single "big-patch" with all 32 in one ? or should I keep them separated ? Should it be called 2.0.1 ? (I saw you are using 2.0.1 for current development branch) Or 2.0.0 sp 1 ? [TOMERGE 2.0] in branch CHANGELOG should be changed to... ? MERGEDFROTRUNK ? [TOMERGE 2.0] in trunk should be modified to... ? 2) When you created the 2.0.0 branch, did you perhaps did something like: svn mv trunk harbour-2.0 svn cp newbranch trunk I ask because the conversion from svn to hg had some strange results and I can't understand what happened. Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] 2 little requests to commit-ters...
On Fri, Jan 22, 2010 at 10:06 AM, Alex Strickland wrote: > francesco perillo wrote: > >> I'm preparing to do merging in 2.0 > > That is good of you. > > I noticed that there were a few bug fixes that did not appear to be marked > with TOMERGE, did you notice them? No, I didn't. Up to now I exported all the single revs, one per file, so I have, for example, patch-43-44.diff I then grep TOMERGE 2 to select all the diffs, and manually selecting a couple that have TOMERGE applied in a subsequent commit. My idea is then to visually inspect each patch to remove not applicable hunks. For Changelog I'm waiting info from main committers - a single big-patch, single patches, and what should be inserted in Changelog > If not I will try and have a look through the ChangeLog and report them. As > ever, I am behind the curve and I have not updated my repository for quite a > while. Please report them in a way that can be easily understood which commit they belong to. Ciao, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] First results in MERGE 2.0
I proceeded with the merge work and I found some problems in the process... 1) hbtrace.c only some changes to hbtrace are marked TOMERGE and so the marked patches don't apply. Can I use the TRUNK version ? 2) hbmk2.pt_BR.po there are several commits for this file and for some of them the label [TOMERGE] was written and then removed... PLEASE don't do it again. If a file "file.prg" has a "complicated" history due to test with poor results there are two possibilities: keep the [TOMERGE] label on every revision on clearly say in the commit "take directly this revision dropping the history" actually collapsing several commits into one. Can I use the TRUNK version ? 3) 2010-01-05 18:48 UTC+0100 Viktor Szakats only in hbmk2.pt_BR.po, probably due to not applied patches at point 2. 4) 2009-12-31 12:43 UTC+0100 Przemyslaw Czerpak it doesn't apply, but I need to investigate better (probably due to some missing previous codepage patches) Should all codepage rfelated patches be MERGED ? 5) 2010-01-13 20:14 UTC+0100 it doesn't apply because it must be applied to lines added by "2010-01-13 09:37 UTC+0100 Przemyslaw Czerpak" that was not marked as TOMERGE that added some similar lines in the same lines confusing the patch system. Should I MERGE it ? 6) 2010-01-18 13:27 UTC+0100 mapi.c doesn't apply for different formatting no problem PLEASE PLEASE PLEASE, in order to not destroy the work I have done up to now, please DON'T make changes to ChangeLog but instead tell me in this message what should I do ! 29 patches apply cleanly. Thank you Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] First results in MERGE 2.0
A quickly answer: On Sat, Jan 23, 2010 at 1:45 AM, Viktor Szakáts wrote: > Hi, > >> 1) hbtrace.c >> only some changes to hbtrace are marked TOMERGE and so the marked >> patches don't apply. >> Can I use the TRUNK version ? > > I think you can't. Several features were added > to this component, so it doesn't count as pure > bugfix. To avoid regressions, no new features > should be back-ported to 2.0.x as a rule. Ok > >> 2) hbmk2.pt_BR.po >> there are several commits for this file and for some of them the label >> [TOMERGE] was written and then removed... PLEASE don't do it again. If >> a file "file.prg" has a "complicated" history due to test with poor >> results there are two possibilities: keep the [TOMERGE] label on every >> revision on clearly say in the commit "take directly this revision >> dropping the history" actually collapsing several commits into one. >> Can I use the TRUNK version ? > > Please you the version committed in: > 2009-12-23 02:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) > > (as for 'don't do it again': you can safely assume > that such commits are only done when there is some > serious issues along the way, in this case it was > codepage problems came at last minute before release. > That's life, such thing can happen in development , > unfortunately. Anyway, multiple modification should > not pose a problem in general.) It's ok, I just wanted to say that for clean patch apply all the commits should be applied > >> 3) 2010-01-05 18:48 UTC+0100 Viktor Szakats >> only in hbmk2.pt_BR.po, probably due to not applied patches at point 2. > > I'm not sure what you mean, but this specific > patch of this file shouldn't be merged. > > The hbmk2.prg -warn fix should go though, it's definitely > a manual merge, since multiple changes were done in > this one commit. I will check later. > >> 4) 2009-12-31 12:43 UTC+0100 Przemyslaw Czerpak >> it doesn't apply, but I need to investigate better (probably due to >> some missing previous codepage patches) >> Should all codepage rfelated patches be MERGED ? > > This should go as is. hbext*.ch files may need > to be applied manually. > >> 5) 2010-01-13 20:14 UTC+0100 >> it doesn't apply because it must be applied to lines added by >> "2010-01-13 09:37 UTC+0100 Przemyslaw Czerpak" that was not marked as >> TOMERGE that added some similar lines in the same lines confusing the >> patch system. Should I MERGE it ? > > This change is not marked as TOMERGE, so you shouldn't. But 2010-01-13 20:14 UTC+0100 adds a line in function hb_hashGetCItemPtr() added in "2010-01-13 09:37" or we add both or none... > >> 6) 2010-01-18 13:27 UTC+0100 >> mapi.c doesn't apply for different formatting no problem > > I can't see the exact problem, but the fix it rightly > marked as TOMERGE, maybe it needs to be manually applied. > >> PLEASE PLEASE PLEASE, in order to not destroy the work I have done up >> to now, please DON'T make changes to ChangeLog but instead tell me in >> this message what should I do ! >> >> 29 patches apply cleanly. > > Thank you. My only comment is that nobody ever told > that patches should or would apply cleanly :( There are > cases when things has to be done manually. IMO it's > almost impossible to design daily "life" around making > back-porting patches a no-brainer. [I've went through > it in 1.0.1, which I did fully manually BTW.] I'm doing it quite manually to extract commits and hunks. But you are a "core" developer, I'm just helping and I can't know if a patch is really a bug fix or something else... For example in one of your patches (about unicode overflow protection) there were changes to win_prn3 (TEXT(0)) not listed in the Changelog and I can't know if they are needed or not... in anay case, they don't apply.. > > Based on merging experiences we may try to create some > basic committing rules to help the process though, but > IMO there is no way to _fully_ avoid automatic merge issues. Yes, for example if you set a [TOMERGE 2.0] label for previous commits, the comit message should be Added [TOMERGE 2.0] to rev XY and not "updated previous Changelog" Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] First results in MERGE 2.0
Ok I will try to manually merge all the revisions I listed in my message.. > > You can merger all my commits. In practice the short answer is: > merge everything except new type modifications (HB_SIZE, HB_ISIZ, > HB_BOOL, ...) Can't see the source files now, I will check later Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] First results in MERGE 2.0
>> For example in one of your patches (about unicode overflow protection) >> there were changes to win_prn3 (TEXT(0)) not listed in the Changelog >> and I can't know if they are needed or not... in anay case, they don't >> apply.. > > Which commit was that? Sorry, my fault, it was ok Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Re: First results in MERGE 2.0
> > 4) 2009-12-31 12:43 UTC+0100 Przemyslaw Czerpak > it doesn't apply, but I need to investigate better (probably due to > some missing previous codepage patches) > Should all codepage rfelated patches be MERGED ? Only 2 hunks don't apply and they are the removal of cphr437 and cpsl437, so this should be ok ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] First results in MERGE 2.0
>> 3) 2010-01-05 18:48 UTC+0100 Viktor Szakats >> only in hbmk2.pt_BR.po, probably due to not applied patches at point 2. > > The hbmk2.prg -warn fix should go though, it's definitely > a manual merge, since multiple changes were done in > this one commit. Ok, it was my fault, the patch should be: @@ -1577,16 +1587,19 @@ CASE cParamL == "-warn" .OR. ; - Left( cParamL, 7 ) == "-warn=" + Left( cParamL, 6 ) == "-warn=" DO CASE - CASE SubStr( cParamL, 8 ) == "def" ; hbmk[ _HBMK_nWARN ] := _WARN_DEF - CASE SubStr( cParamL, 8 ) == "no" ; hbmk[ _HBMK_nWARN ] := _WARN_NO + CASE SubStr( cParamL, 7 ) == "def" ; hbmk[ _HBMK_nWARN ] := _WARN_DEF + CASE SubStr( cParamL, 7 ) == "no" ; hbmk[ _HBMK_nWARN ] := _WARN_NO OTHERWISE ; hbmk[ _HBMK_nWARN ] := _WARN_YES ENDCASE > >> 4) 2009-12-31 12:43 UTC+0100 Przemyslaw Czerpak >> it doesn't apply, but I need to investigate better (probably due to >> some missing previous codepage patches) >> Should all codepage rfelated patches be MERGED ? > > This should go as is. hbext*.ch files may need > to be applied manually. > >> 5) 2010-01-13 20:14 UTC+0100 >> it doesn't apply because it must be applied to lines added by >> "2010-01-13 09:37 UTC+0100 Przemyslaw Czerpak" that was not marked as >> TOMERGE that added some similar lines in the same lines confusing the >> patch system. Should I MERGE it ? > > This change is not marked as TOMERGE, so you shouldn't. > >> 6) 2010-01-18 13:27 UTC+0100 >> mapi.c doesn't apply for different formatting no problem > > I can't see the exact problem, but the fix it rightly > marked as TOMERGE, maybe it needs to be manually applied. > >> PLEASE PLEASE PLEASE, in order to not destroy the work I have done up >> to now, please DON'T make changes to ChangeLog but instead tell me in >> this message what should I do ! >> >> 29 patches apply cleanly. > > Thank you. My only comment is that nobody ever told > that patches should or would apply cleanly :( There are > cases when things has to be done manually. IMO it's > almost impossible to design daily "life" around making > back-porting patches a no-brainer. [I've went through > it in 1.0.1, which I did fully manually BTW.] > > Based on merging experiences we may try to create some > basic committing rules to help the process though, but > IMO there is no way to _fully_ avoid automatic merge issues. > > One such rule could be to commit fixes in distinct commits, > if there is any chance that fix needs to be back-ported > "AKA [TOMERGE 2.0]-ed". > > Brgds, > Viktor > > ___ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] First results in MERGE 2.0
I repost since I fear that attachments blocked the message. Ok, this is the first try big-patch-2.0.0.diff should cleanly apply to branch 2.0.0 trunk-changelog should be applied to Trunk, it contains the TOMERGE -> MERGED changes So, to power-users and power-coders, please review and apply the big-patches locally If you also apply locally (DON'T commit) trunk-changelog you will see some TOMERGE 2.0 still active. One of them (2009-12-23 02:59) is actually present in the big-patch in the form, but please double check should be done on the accented chars. Then: A) 2010-01-13 20:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/vm/hashes.c ! fixed missing HB_STACK_TLS_PRELOAD - thanks to Xavi [TOMERGE 2.0] Can't be applied so TOMERGE 2.0 should be REMOVED. This patch modifies function hb_hashGetCItemPtr() added by (2010-01-13 09:37 UTC+0100 Przemyslaw Czerpak) that is not flagged as TOMERGE... B) 2009-12-28 10:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) 2009-12-28 01:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * src/common/hbtrace.c Viktor, I don't know which hunks should be merged, can you provide the patch or give me some clues ? C) 2009-12-26 14:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) You said: You can merger all my commits. In practice the short answer is: merge everything except new type modifications (HB_SIZE, HB_ISIZ, HB_BOOL, ...) I imagine you were referring to this commit only but in this commit there are some code cleanups and definition of HB_FLOAT... and changes in matherr Sincerely, I'm a bit afraid to break something I'm packing and I will shortly leave for a week - and I will have limited access to the internet (usually in the late evening) so I may be a bit slow in answering. Download: http://www.bruxx.it/frank/big-patch-2.0.0.diff and http://www.bruxx.it/frank/trunk-changelog.diff Francesco PS: all the single patches applied are in different files so it's easy to modify and rebuild the big patch ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] First results in MERGE 2.0
As I said, I'm out and ingernet connection is worse than expected at least today don't know next days. Yes, I worked on linux and transformed the repository in a mercurial repos... I will check the problems you report asap. Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Binaries for Suse
I can provide rpm for some suse releases... which one do you need ? And which optional components do you need (since some of these servers are production servers I can't install too much stuff on them) Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[13776] trunk/harbour
> -Give the possibility of search two expression: for example i serc > myarray and ,31 > serch myarray[1,31] or myarray[ a_pippo ,31] That is a Regex search "myarray.*,31" Regex is in the TODO list ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: I want to participate
I'm for Bacco style: a lot of different sample, easily buitable, that deeply exploit all possibilities of an object. Are there 3 button styles ? A demo of buttons with all three present in the form, or three different forms ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] gtwvt compatibility issue
I'm sending this message for Maurizio. -- Hi Viktor, simply try to compile this code with and without wvt request: __ #include "hbgtinfo.ch" #include "wvtwin.ch" procedure Main() REQUEST HB_GT_WVT_DEFAULT // rem this to note the difference hb_DispBox( 0, 0, MaxRow(), MaxCol(), Space(9), 103 ) inkey(0) return __ You'll notice the difference of the painted area, brown like in gtwvt version and gold like in other case. Best regards Maurizio ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Anyone using hbqt ?
I see Qt has lots of possibilities, is very powerfull and widely available... There are lots of tutorials and sample code available (and demos in the Qt package are terrific!) but they are for C++ Now the question: if I want to start using hbxpb/hbqt where should I start ? Is hbide and demoxpb the only available source code ? Is hbxpb the only way to use hbqt ? Are all features of Qt available to harbour ? Thanks, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: Anyone using hbqt ?
I'm collecting some infos at this stage because some aspects are unknown or not clear to me. > hbXBP is a class framework based on Xbase++ class documentation. > It uses hbQT for GUI implementation. > > demoQT.prg in contrib/hbqt/tests is a pure hbQT based demo application. Sorry, I missed it. From the source it seems that, up to now, there is no .ch file with #define. > hbIDE is a powerful application demonstration > ( if we take it in this context ) which exposes many-many constructs > of Qt. Yes, it is really nice and this is the reason I'm gathering infos > What else you are asing for, or expecting ? I'm asking for infos and sample code ! Expecially infos about porting legacy code to Qt... for example, how can I emulate the PICTURE in GET system ? or the WHEN/VALID ? > BTW, Bacco and Vailton will soon release some application > based on pure Qt, you can wait for them to be available. It is really good ! I will try to contact them to have a preview, if possible Thanks, Francesco PS: is it possible to compile a static hbide.exe for distribution ? If yes, how ? ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: Anyone using hbqt ?
Not only this little samples (I already wrote last week that little "dedicated" samples are better that a monolithic source full of everything... But I also ask for Qt/harbour integration, or how to map harbour object on Qt widgets and viceversa... so, demoxpb shows that Qt is usable, hbide shows that hbqt/hbxpb are really usable and can create a nice looking, feature full application. But none give an idea of a migration path from harbour... I already cited PICTURE and I now add TBrowse... Qt has a really nice Table implementation, really powerful and customizable (using styles, using views, you can write in cells directly..) but this means completely dropping old code... Then I would like to view a "commercial-grade" dbf-based form of something... it can be a stupid recipe bookkeeper to a stupid agenda... And, finally, a bit of docs... best practices... for example in C++ world, I saw samples where form code was contained in a class... ..or a little doc stating how hbqt is glued with Qt I will do some tests asap, in the meantime if some other samples are published it would be good... thanks ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: Anyone using hbqt ?
> > 2. Goto harbour/contrib/hbqt/gtqtc It's in harbour/contrib/gtqtc so it didn't get my attention from what I understand this is a GT module that interfaces with Qt using Qt "text-mode", so that you can run a Qt program in text-mode is it correct ? So pure, unmodified clipper source code still works... But can you use gtqtc and mix it with Qt gui items ? > Soon, you will find, at least starting with, documentation. > Wait a few days more. Ok, thank you very much for your work ! Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Anyone using hbqt ?
Hi, I spent just ten minutes with your code and I must say that I like it, expecially the preprocessor part that is very smart ! The code looks promising... I will try to checkout tomorrow and read the docs. Do you have a more comprehensive sample ? Thanks, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: Anyone using hbqt ?
On Thu, Feb 25, 2010 at 11:25 PM, Pritpal Bedi wrote: > > > It is wrong to put it like this: > so that you can run a Qt program in text-mode. > Rather we should say: > so that you can run a Clipper program in Qt environments. ok... but which are the Qt environments where you can't use other GTs ? I ask because, except for mobile phones, I really don't know Qt environments - I'm new to Qt so I don't know very much > > > >> But can you use gtqtc and mix it with Qt gui items ? I explain better: it would be possible to have in the same program one window done in "text-mode" and ANOTHER window in gui mode ? (not text-mode in the gui form or gui widgets in text-mode...) In this way migration can be easier > ...but this is not the > way to exploit Qt's power. It is better we start thinking port our code to > pure GUI. I agree. > > I will try to > find the ways to migrate easily exiting code. TBrowse oriented code > may need little labout to adapt to XbpBrowse(). Yes, a "best practice" guide can be very useful > GetList will need much > more work to simulate the excat behavior, this this is doable. Hwgui has a GetList implementation and it also has a editbox with PICTURE support... it may be nice to subclass the editline e implement the PICTURE... > Needed are some more hands. Personally, I need a 40 hours/day...so if I have 6 hours sleeping, 8 working, I have some hours left per day- :-) Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: Anyone using hbqt ?
> This is _ABSOLUTELY_POSSIBLE_. > > I did experimented with my flagship application Vouch and it works. > Will post a sample, or will include it in gtqtc/tests/demoqtc.prg soon. > Right now implementing NG format oriented hbQT's help. Ok, perfect ! Now I just ask you where may I start to get informations about hbqt... Changelog ? Where did you get info on Qt ? Did you follow a model to implement the class ? something to start Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: FocusIn and FocusOut in widgets
Is this a way to have WHEN/VALID implementation ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: FocusIn and FocusOut in widgets
Thank you for your reply. I still had no time to look at HbQtCommand documentation... I hope to do it tomorrow > DEFINE TEXTBOX t1 > VALUE "Initial Value" > ONLOSTFOCUS myRoutineForValid() > END TEXTBOX What happens when myRoutineForValid() returns .F. ? Or when myRoutineForValid() returns .T. and the following editbox myRoutineForWHEN returns .F. ? Is there a upper layer to handle the "get" system in a clipper style? ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: FocusIn and FocusOut in widgets
Thank you for your sample. I'm reading a book on Qt but it is C++ based. It's really interesting what you can do with Qt. In C++ you can easily subclass widgets to extend their functionalities, add slots and signals... is it possible to do this with hbqt/hbqtcommand ? in C++ or Harbour ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] How to retrieve the CallStack
In the debugger it is possible to see the CallStack and the variables "active" in each stack level. >From the debugger source code I see that the CallStack is passed to __dbgEntry as a parameter and that parameter is built in C in funcyion hb_dbgActivate( HB_DEBUGINFO *info ) where info is a pointer to the VM call stack... I now ask if is it possible to get a prg-level CallStack array in order to use it in the errorsys handler. Thanks Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to retrieve the CallStack
Hi Alex, thank you for your code but I was asking more in-depth informations. The Debugger can show the variables "active" for each "n", so that with the call stack you can display the parameter values and the local variables values (anche if compiled with -b you should be able also to display variable name...) For example, with your code you get something like this: Called from PTR_CHECK2(336) Called from PTR_CHECK(220) Called from ST3FV(63) I want something like this (I could achieve this thanks to some routines I found on google but there is something that is not perfect): PTR_CHECK2 Param 1:ALen:3 Param 2:ALen:3 Param 3:ALen:3 Local 1:U Local 2:U Local 3:ALen:6 Local 4:N0.00 Local 5:L.F. Local 6:N5.00 Local 7:N0.00 Local 8:ALen:0 Local 9:ALen:3 Local 10:N6.00 Local 11:N2.00 Local 12:N6.00 Local 13:S Local 14:U Local 15:ALen:3 Local 16:N5.00 Local 17:C"W/B,GR+/W,N/N,B/N,W+/BG,B/N" Local 18:N0.00 PTR_CHECK Param 1:ALen:2 Param 2:ALen:2 Local 1:U So I don't only know the function and the line, but I may also know the variable values... In this specific error, Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A [ 2] = N 5.00 @ Y+1,15 say aPrinter[ s_ptr_selec ] s_ptr_selec is a static var that has value 5... aPrinter is "Local 15", an array tath has len = 3 BUG FOUND... it is a specific IF condition not covered in the source code... and this debug is from a live application... Ciao, Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] What is Valtype = S ?
I'm trying to understand what does S means for VALTYPE... anyone ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] What is Valtype = S ?
Thanks, but in a function like this: function fun( ff1, ff2, ff3 ) local l1 l1 := "L1" ? "FUN" ? TraceNow() return .T. and in TraceNow() I use __DBGVMVARLGET(level) to retrieve the local variable at "fun" level I get: Local1: C "f1" Local2: C "f2" Local3: U Local4: C "L1" Local5: S Local6: U Local1,2 and 3 are ff1 ff2 ff3 Local4 is l1 and Local5 and 6 ??? where are they from ? Is it also possible that the compiler removes local variables (both LOCAL or parameters) present in function definition not used in the function ? or that they are changed position in the LocalX list ? Is there a way to retrieve the variable names (after compiling with -b flag) as in the debugger ? Thanks Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: HBEDITOR
On Wed, Mar 3, 2010 at 12:23 AM, Bruno Luciani wrote: > Where I can get , thisearly version ? >From SVN, going to some revisions back. Try harbour 2.0.0 official source code package... ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Re: HBEDITOR
> Only work If I hit enter in an empty file , but if I move cursor in an > edited file > > the information don't change. Probably you use isChanged signal. probably there is another message or you have to capture event... (just finished to read a manual on Qt can't be of more help...) ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [SPAM] Re: [Harbour] What is Valtype = S ?
I have not read Przem message yet, > The only thing I wonder is why all this is important > for a normal user application...? I'd like to print ALL the variables (private, public, local) in all stack states, in order to have a complete HVM snapshot, while with oError:args you have only the parameters... It's a "plus" in debugging production codenot strictly necessary, but a plus... Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Uptade HBMySql.hbc
libmysqlclient.a on SUSE LINUX 10.0 (i586) OSS libmysqlclient.so.15 on Fedora release 8 (Werewolf) libmysqlclient.so.15.0.0 on openSUSE 11.1 (x86_64) libmysqlclient.so.15.0.0 on SLES 9 sp1 ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] @Viktor, I've rpms for opensuse 11.2
How can I put them on sourceforge ? harbour-2.0.0-0sus112.i586.rpm harbour-contrib-2.0.0-0sus112.i586.rpm harbour-curl-2.0.0-0sus112.i586.rpm harbour-firebird-2.0.0-0sus112.i586.rpm harbour-gd-2.0.0-0sus112.i586.rpm harbour-lib-2.0.0-0sus112.i586.rpm harbour-mysql-2.0.0-0sus112.i586.rpm harbour-pgsql-2.0.0-0sus112.i586.rpm harbour-qt-2.0.0-0sus112.i586.rpm harbour-static-2.0.0-0sus112.i586.rpm ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] recommended C compiler for Win
> BCC is a joke these days. ooops... I have a production site working with a bbc version of Harbour... ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] @Viktor, I've rpms for opensuse 11.2
> Hi Francesco, > > Pls give me your sf.net ID and I'll add you as dev member > with file release rights. fperillo ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour