Re: [Harbour] How to build and use pCode DLL with hbmk2

2010-02-11 Thread Przemysław Czerpak
On Wed, 10 Feb 2010, 2D Info - Leandro Damasio wrote: Hi, > >But in the .prg code used for EXE file when you are calling > >functions which do not exist in it and are loaded dynamically > >then all such functions should be declared as DYNAMIC otherwise > >you will have link time error (function d

[Harbour] Re: USE error ?

2010-02-11 Thread David Arturo Macias Corona
Przemek: >> Something has changed for this case since Aug 2007 ? >I created new code for MT mode which also can use BSD or POSIX locks >for deny flags emulation so now it works between aliased work areas >even in single process. >This code were copied from Harbour repository to xHarbour CVS by:

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

2010-02-11 Thread vszakats
Revision: 13842 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13842&view=rev Author: vszakats Date: 2010-02-11 11:33:10 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 12:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * src/rtl/direct.c * in

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

2010-02-11 Thread vszakats
Revision: 13843 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13843&view=rev Author: vszakats Date: 2010-02-11 11:37:58 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 12:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/wapi_wingdi

[Harbour] Re: Przemek: .DBT and .FPT file confusion

2010-02-11 Thread David Arturo Macias Corona
Przemek: >Any you want. DBT allows to store only strings and uses 512 bytes >blocks. FPT allows to store also other data types (numbers, dates, >arrays, ...) and user can set block size (default is 64 bytes) so it's >more flexible and creates smaller files. >It also contains garbage collector whi

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

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, jara...@users.sourceforge.net wrote: Hi Xavi, > 2010-02-11 04:25 UTC+0100 Xavi (jarabal/at/gmail.com) > * contrib/hbwin/wapi_winbase.c > + Added wapi_GETSHORTPATHNAME() Thank you very much. Just only few notes. WAPI_* functions should be as closed to original implement

Re: Res: [Harbour] MinGW dllcall function not run.

2010-02-11 Thread Viktor Szakáts
Hi Xavi, On 2010 Feb 11, at 05:20, Xavi wrote: > Hi Viktor, > >> You've introduced a new permanently set macro called HB_OS_WIN64_32, >> redefined a Harbour type (which should be avoided by all means) > > Is to work with win64 implementation in win32 with minimal changes. > If the system is win

[Harbour] OS/2: Harbour 13841

2010-02-11 Thread David Arturo Macias Corona
I made tests with * $Id: ChangeLog 13841 2010-02-11 03:26:15Z jarabal $ 2010-02-11 04:25 UTC+0100 Xavi (jarabal/at/gmail.com) and new os2gcc442 - I saw there are new libraries in Harbour - So os2gcc reach 32K limit again and harbourm.dll can not build Except for harbourm.dll build error, Harb

Re: [Harbour] Re: USE error ?

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, David Arturo Macias Corona wrote: Hi, > Thanks, with these explanations now is more clear: > - In Linux nothing prevent two applications open file in EXCLUSIVE > from each side No. In Linux and other POSIX system there is no EXCLUSIVE mode at all. Only shared mode exists tho

Re: [Harbour] Re: Przemek: .DBT and .FPT file confusion

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, David Arturo Macias Corona wrote: Hi, > g) Why Clipper and Harbour show different ? : > SET( _SET_MBLOCKSIZE ) 64 > SET( _SET_MBLOCKSIZE ) 0 > It must be fixed ? 0 means use RDD default. 64 for FPT and 32 for SMT. best regards, Przemek __

Re: [Harbour] OS/2: Harbour 13841

2010-02-11 Thread Viktor Szakáts
Hi David, On 2010 Feb 11, at 12:58, David Arturo Macias Corona wrote: > I made tests with > * $Id: ChangeLog 13841 2010-02-11 03:26:15Z jarabal $ > 2010-02-11 04:25 UTC+0100 Xavi (jarabal/at/gmail.com) > > and new os2gcc442 > > - I saw there are new libraries in Harbour > - So os2gcc reach 32K

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

2010-02-11 Thread vszakats
Revision: 13844 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13844&view=rev Author: vszakats Date: 2010-02-11 12:12:51 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 13:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * external/libhpdf/Makefile

Re: [Harbour] How to build and use pCode DLL with hbmk2

2010-02-11 Thread Leandro Damasio
>But in the .prg code used for EXE file when you are calling >functions which do not exist in it and are loaded dynamically >then all such functions should be declared as DYNAMIC otherwise >you will have link time error (function does not exist). In my case of use the functions in the DLL are call

[Harbour] OS/2: Harbour and os2gcc

2010-02-11 Thread David Arturo Macias Corona
As Paul Smedley was releasing os2gcc404, os2gcc432, os2gcc433, os2gcc440 I was testing Harbour with them Later my choice was to use Harbour+os2gcc433 as reference and Harbour 2.0.0 for OS/2 was released with this version too Since Dec 2009 are available os2gcc434 and os2gcc442 I tested them

Re: [Harbour] How to build and use pCode DLL with hbmk2

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, Leandro Damasio wrote: Hi, > >It will work but I do not understand how it's possible to call > >function by macro knowing it's name when macro value is created > >but in other context you do not know this name. Your above > >description does not make any sense or you simply f

[Harbour] Re: USE error ?

2010-02-11 Thread David Arturo Macias Corona
Przemek: >Yes but now there are some other problems in data sharing. >We have fixed CP support so it's not possible to share data >with xHarbour applications which uses incompatible CP implementation. >It will cause index file corruption so it's necessary to precisely >verify if both application

[Harbour] Re: Przemek: .DBT and .FPT file confusion

2010-02-11 Thread David Arturo Macias Corona
Przemek: >> g) Why Clipper and Harbour show different ? : >> SET( _SET_MBLOCKSIZE ) 64 >> SET( _SET_MBLOCKSIZE ) 0 >> It must be fixed ? >0 means use RDD default. 64 for FPT and 32 for SMT. Along years we know that but reference may vary For example, in Clipper 5.3

[Harbour] OS/2: Harbour 13841

2010-02-11 Thread David Arturo Macias Corona
Viktor: >> - So os2gcc reach 32K limit again and harbourm.dll can not build >:( I could be seen in advance. I can't give any solution, >but I hope someone will. As expected, Harbour has grown and can not fit in 32K limit :-) >I'll suppress the libharu warnings. Thanks David Macias ___

Re: [Harbour] Re: USE error ?

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, David Arturo Macias Corona wrote: Hi, > Not only locking-scheme problem but proper CP implementation too > So to share data files between Harbour and xHarbour (or some other > systems) is a big risk of data corruption Just like between Harbour and Harbour or Clipper and Clip

Re: [Harbour] Re: Przemek: .DBT and .FPT file confusion

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, David Arturo Macias Corona wrote: > This old Clipper code of my friend does not apply in Harbour: > IF SET( _SET_MBLOCKSIZE )<> 64 >SET( _SET_MBLOCKSIZE, 64 ) It perfectly works in Harbour forcing 64 bytes block size. best regards, Przemek ___

Re: [Harbour] How to build and use pCode DLL with hbmk2

2010-02-11 Thread Leandro Damasio
Hello Przemek >It will work but I do not understand how it's possible to call >function by macro knowing it's name when macro value is created >but in other context you do not know this name. Your above >description does not make any sense or you simply forgot to say >about some important condit

[Harbour] OS/2: hbqt

2010-02-11 Thread David Arturo Macias Corona
Pritpal continue "highly focused in hbide" and other people does not have hints for this case: --- d) hbqt List of source files which have errors on OS/2 and detailed flow of tests Alternatives: - Fix source code - Perhaps this code does not work on OS/2 - Qt But

[Harbour] FPT corruption

2010-02-11 Thread Mindaugas Kavaliauskas
Hi, few times per year we find corrupted .fpt files in databeses of our customers. The problem is that this corruption is not detected by driver and causes strange behavior. For example, application hangs-up, but do not GPFs. After some tests we found, that it "hangs-up" because it uses a hu

Re: [Harbour] FPT corruption

2010-02-11 Thread Alex Strickland
Mindaugas Kavaliauskas wrote: USHORT uiField = hb_parni( 1 ); ULONG ulBlock, ulSize, ulType; BOOL bDeleted; Viktor will kill you if he sees these :) Cheers Alex ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http:

Re: [Harbour] FPT corruption

2010-02-11 Thread Viktor Szakáts
> Mindaugas Kavaliauskas wrote: > >> USHORT uiField = hb_parni( 1 ); >> ULONG ulBlock, ulSize, ulType; >> BOOL bDeleted; > > Viktor will kill you if he sees these :) It won't compile, so such harsh action is not necessary ;) But yes, you are right, and I forgot to send a specific message about

[Harbour] HB_BYTE vs. HB_UCHAR

2010-02-11 Thread Viktor Szakáts
Hi Przemek and All, We have this decision left regarding new types, and I'd like to clear it. We currently have two types which are mapped to the same ANSI C type 'unsigned char'. IMO if we want to keep both, we should give some clear guideline to Harbour and 3rd party developer, as to which

Re: [Harbour] OS/2: Harbour 13841

2010-02-11 Thread Maurilio Longo
David, this is something in gcc4 on OS/2, with my old GCC 3.3.5 and latest make I can build harbour.dll and harbourm.dll without problems. Directory of E:\REPOSITORY\HARBOUR\bin\os2\gcc 11/02/10 13:44 124 . 11/02/10 13:27 124 .. 11/02/10 13:41 3.866.628

[Harbour] OS/2: Harbour 13841

2010-02-11 Thread David Arturo Macias Corona
Maurilio: >this is something in gcc4 on OS/2, with my old GCC 3.3.5 and latest >make I can build harbour.dll and harbourm.dll without problems. >Directory of E:\REPOSITORY\HARBOUR\bin\os2\gcc >11/02/10 13:41 3.866.628124 a--- harbour.dll >11/02/10 13:44 3.874.820124 a--- har

[Harbour] OS/2: Harbour 13841

2010-02-11 Thread David Arturo Macias Corona
Maurilio: this is something in gcc4 on OS/2, with my old GCC 3.3.5 and latest make I can build harbour.dll and harbourm.dll without problems. Directory of E:\REPOSITORY\HARBOUR\bin\os2\gcc 11/02/10 13:41 3.866.628124 a--- harbour.dll 11/02/10 13:44 3.874.820124 a--- har

R: [Harbour] HB_BYTE vs. HB_UCHAR

2010-02-11 Thread Maurizio la Cecilia
I agree with the uniqueness of the type, but i like HB_UCHAR. The 'unsigned' qualifier is declared, despite of HB_BYTE (signed or unsigned?). I know that it's more familiar, but not so precise as the HB_UCHAR (leaving no doubt about the sign). Maurizio la Cecilia > -Messaggio

Re: R: [Harbour] HB_BYTE vs. HB_UCHAR

2010-02-11 Thread Alex Strickland
Maurizio la Cecilia wrote: I agree with the uniqueness of the type, but i like HB_UCHAR. The 'unsigned' qualifier is declared, despite of HB_BYTE (signed or unsigned?). I know that it's more familiar, but not so precise as the HB_UCHAR (leaving no doubt about the sign). For me, HB_BYTE implies

Re: Res: [Harbour] MinGW dllcall function not run.

2010-02-11 Thread Xavi
Hi Viktor, That can work, but it means we don't support int64/double parameters and int64/double/float/char return values anymore. Currently we do, so maybe it'd be good to take care of it. We should also support both cdecl and stdcall versions. Yes I know, this is not perfect. Also I just t

[Harbour] MT app works under Linux but fails under Win

2010-02-11 Thread Lorenzo Fiorini
When I try to run an MT app that works perfectly under Linux I get the error below ( even with -g Harbour rebuild ). If I link against harbour.dll it works as expected. Win offers to send the error to MS and gives a long dump of info. Any idea? best regards, Lorenzo [New thread 2348.0xe40] war

[Harbour] Re: OS/2: hbqt

2010-02-11 Thread Pritpal Bedi
David Arturo Macias Corona wrote: > > Pritpal continue "highly focused in hbide" and other people does not > have hints for this case: > I know nothing about OS2 and hence not in a position to comment. One point which comes in mind is that Harbour is supporting Qt 5.5.3 and your experiments

[Harbour] for each requires local definition?

2010-02-11 Thread AbeB
Hi All, Does 'For Each' require variables to be local defined? proc test local ary := {1,2,3} local n << with out this line a RTE Error BASE/1003 Variable does not exist: N will occour for each n in ary ? n Next Thanks Abe -- View this message in context: http://n2.

Re: [Harbour] OS/2: Harbour 13841

2010-02-11 Thread Maurilio Longo
David, I've reviewed your messages, I think 32K is environment size limit for OS/2 processes; so, maybe os2gcc and/or ld receive something as an envvar and this is now bigger than 32Kb :( Maurilio. David Arturo Macias Corona wrote: > Maurilio: > >> this is something in gcc4 on OS/2, with my ol

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

2010-02-11 Thread vszakats
Revision: 13845 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13845&view=rev Author: vszakats Date: 2010-02-11 17:18:40 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 18:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/win_dll.c

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

2010-02-11 Thread vszakats
Revision: 13846 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13846&view=rev Author: vszakats Date: 2010-02-11 17:41:28 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 18:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/win_dll.c

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

2010-02-11 Thread vszakats
Revision: 13847 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13847&view=rev Author: vszakats Date: 2010-02-11 17:49:24 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 18:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/win_dll.c

Re: [Harbour] for each requires local definition?

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, AbeB wrote: Hi, > Does 'For Each' require variables to be local defined? No. > proc test > local ary := {1,2,3} > local n << with out this line a RTE Error BASE/1003 Variable does not > exist: N will occour > for each n in ary > ? n > Next Pefect behavior. No 'n' va

Re: [Harbour] for each requires local definition?

2010-02-11 Thread Viktor Szakáts
Hi Przemek and All, IMO it would be more consistent behavior to create a private variable in such case, since with regular FOR/NEXT it also works without declaring the variable: --- OK FOR tmp := 1 TO Len( a ) NEXT --- --- Not OK FOR EACH tmp IN a NEXT --- 'tmp' is a written variable in both

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

2010-02-11 Thread vszakats
Revision: 13848 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13848&view=rev Author: vszakats Date: 2010-02-11 18:35:25 + (Thu, 11 Feb 2010) Log Message: --- 2010-02-11 19:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/win_dll.c

Re: [Harbour] FPT corruption

2010-02-11 Thread Mindaugas Kavaliauskas
Hi, Alex Strickland wrote: USHORT uiField = hb_parni( 1 ); ULONG ulBlock, ulSize, ulType; BOOL bDeleted; Viktor will kill you if he sees these :) I have alibi. This code is created half year ago :) Regards, Mindaugas ___ Harbour mailing list (at

Re: [Harbour] for each requires local definition?

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, Szak�ts Viktor wrote: Hi, > IMO it would be more consistent behavior to create a private > variable in such case, since with regular FOR/NEXT it also > works without declaring the variable: > --- OK > FOR tmp := 1 TO Len( a ) > NEXT Because you have explicit assignment ':=

Re: [Harbour] for each requires local definition?

2010-02-11 Thread Viktor Szakáts
> tmp in FOR EACH is only reference. > Why we should create variable for such reference in FOR EACH > but not in function call?, i.e.: > > func( @tmp ) > ? tmp > > 'tmp' is also "a written variable" like in above both cases. > > Of course if most of Harbour users prefer to create new memvar

[Harbour] Re: for each requires local definition?

2010-02-11 Thread Pritpal Bedi
Przemysław Czerpak wrote: > > Personally I even think that FOR EACH should use their own temporary > variables instead of declared ones. It will be much cleaner and faster. > +1 - enjoy hbIDEing... Pritpal Bedi _a_student_of_software_analysis_&_desig

[Harbour] MSVS 2010 RC is out

2010-02-11 Thread Viktor Szakáts
http://msdn.microsoft.com/en-us/library/dd465215(VS.100).aspx http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx (interesting to see their IDE improvements. better late than never) Brgds, Viktor ___ Harbour mailing list (attachment size limit: 40KB

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

2010-02-11 Thread Xavi
Hi Przemek, Ok, I'll do it ...more slowly :) Best regards, -- Xavi El 11/02/2010 12:48, Przemysław Czerpak escribió: On Thu, 11 Feb 2010, jara...@users.sourceforge.net wrote: Hi Xavi, 2010-02-11 04:25 UTC+0100 Xavi (jarabal/at/gmail.com) * contrib/hbwin/wapi_winbase.c + Added wapi_G

Re: [Harbour] HB_BYTE vs. HB_UCHAR

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, Szak�ts Viktor wrote: Hi, > We have this decision left regarding new types, > and I'd like to clear it. > We currently have two types which are mapped to > the same ANSI C type 'unsigned char'. > > IMO if we want to keep both, we should give some > clear guideline to Harb

Re: [Harbour] HB_BYTE vs. HB_UCHAR

2010-02-11 Thread Viktor Szakáts
>> IMO if we want to keep both, we should give some >> clear guideline to Harbour and 3rd party developer, >> as to which should be used in what situations. >> >> If we cannot do so, or if there is indeed no clear >> different between them (meaning they are equivalent), >> we should keep only

Re: [Harbour] FPT corruption

2010-02-11 Thread Przemysław Czerpak
On Thu, 11 Feb 2010, Mindaugas Kavaliauskas wrote: Hi, > few times per year we find corrupted .fpt files in databeses of our > customers. The problem is that this corruption is not detected by > driver and causes strange behavior. For example, application > hangs-up, but do not GPFs. After some t

Re: Res: [Harbour] MinGW dllcall function not run.

2010-02-11 Thread Viktor Szakáts
Hi Xavi and All, On 2010 Feb 11, at 16:23, Xavi wrote: > Hi Viktor, > >> That can work, but it means we don't support int64/double >> parameters and int64/double/float/char return values anymore. >> >> Currently we do, so maybe it'd be good to take care of it. >> >> We should also support both

Re: Res: [Harbour] MinGW dllcall function not run.

2010-02-11 Thread Xavi
Hi Viktor, I can easily implement pure .c win32 .dll call support which drops support for int64/double parameters and int64/double/float return values. I'd also guess they are not very widely used, so it's probably not a big loss. I agree. If need it, is better to have a specific wrapper. Bes

Re: Res: [Harbour] MinGW dllcall function not run.

2010-02-11 Thread Viktor Szakáts
Hi Xavi, > Hi Viktor, > >> I can easily implement pure .c win32 .dll call support >> which drops support for int64/double parameters and >> int64/double/float return values. I'd also guess they >> are not very widely used, so it's probably not a big >> loss. > > I agree. If need it, is better to