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

2010-03-23 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: Can you test if hbfbird works with similar SQL command? They are using the same API, so if that one works, it's only a matter of finding the difference. Hi, I have not noticed we have one more firebird contrib. Samples of hbfbird do not work for me. --- C

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

2010-03-23 Thread Mindaugas Kavaliauskas
2010-03-23 15:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbatomic.h + added HB_SPINLOCK_TRY(l) + added support for recursive spin locks Hi, I'm interested why sl parameter in hb_spinlock_try_r() (hbatomic.h#486) is used in brackets. It's a function, it

[Harbour] Timestamp compile time optimisation bug

2010-03-25 Thread Mindaugas Kavaliauskas
Hi, PROC main() LOCAL t SET(4, "-MM-DD") /* Trying to generate timestamp with time part only */ ? HB_NTOT(0.12345) // OK ? HB_DTOT(CTOD("")) + 0.12345 // OK ? t"-00-00" + 0.12345 // Wrong: no time part printed ? VALTYPE(t"-00-00") // Prints "T". OK ? VALTYPE(t"-00-

Re: [Harbour] mingw MT mode performance

2010-03-26 Thread Mindaugas Kavaliauskas
Hi, I suggest to start with small test to check the code produced by MS for thread local variables. Knowing MS I will not be very surprised if it's already well tuned code which does not call internally TlsGetValue() at all so there is not place for noticeable improvement. I think that we need

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-26 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: It's important only if you have to often recompile very big C files which can be hardly optimized. It happens if you develop and compile Harbour itself, but not the final application only. You can also try to reduce the optimization level, i.e. you can use -O

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-29 Thread Mindaugas Kavaliauskas
You can also try to reduce the optimization level, i.e. you can use -Os in MinGW flags. It should reduce the compilation time and final binaries will be slower then the one created by BCC though still faster. I'm trying another approach :) Upgrading from Celeron to Core i5. It should help a lit

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-29 Thread Mindaugas Kavaliauskas
Przemysław Czerpak wrote: This option enables simultaneous compilation of different files. It means that it will not change the compilation of single file at all but when many files have to be compiled and -j is passed as GNU make parameter then it creates upto processes and each of them is used

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-30 Thread Mindaugas Kavaliauskas
Maurilio Longo wrote: as I wrote earlier I did not see any difference as well unless i just call it with -j (without number), in this case I see both of my cores doing work. Hi, thank You. That helps in my case also. -j4, -j5, -j99 do nothing, but -j makes build harbour more than twice fast

Re: [Harbour] WMF to PDF

2010-03-30 Thread Mindaugas Kavaliauskas
Rossine wrote: Is possible converter wmf to pdf through the harbour ? Hi, Two ways comes to my mind, though non of it is directly related to harbour and requires more or less C knowledge: 1) You can try to play metafile on PDFCreator printing device (perhaps can be done in Harbour or a fe

Re: [Harbour] mingw MT mode performance

2010-04-01 Thread Mindaugas Kavaliauskas
Mindaugas any chance that you can check the code generated by MSVC which access thread local variables for wi...@32 and Win64? I do not have any Win64 disassembler, but I think I can do some reverse engineering by hand (and brain) :) http://en.wikipedia.org/wiki/X86-64 "Instead of FS segment d

Re: [Harbour] Error with ODBC under rddsql (sddodbc) ...

2010-04-06 Thread Mindaugas Kavaliauskas
I try to test dBUseArea() with DBFCDX RDD and SQLMIX RDD ... Since I cannot test the test2.prg under \hb20\contrib\rddsql\sddodbc\tests I modify test2.prg into tstmysql.prg as follow: However the line: ? dBUseArea( .T., "sqlmix", "SELECT * FROM country", "country", .T., .F.) with error comes o

Re: [Harbour] Error with dBUseArea(...) with rddsql (sddodbc) withmysql ???

2010-04-08 Thread Mindaugas Kavaliauskas
On 2010.04.08 12:56, Horodyski Marek (PZUZ) wrote: I continue to test sddodbc with mysql for adding a BIGINT field ...but error comes out : *- Hi Shum, I too have trouble with new type in MS SQl. Advice from Mindaugas, try change in fil\harbour\contrib\rddsql\sddodbc\odbcdd.

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

2010-04-22 Thread Mindaugas Kavaliauskas
Hi, thanks for suggestion. The previous code was based on ADS documentation. It does not mention that VFP supports D,4 fields. Regards, Mindaugas ADS should support in DBF (at least in VFP mode) julian date fields as 32bit little endian integer values {"D", 4, 0} which do not use string re

Re: [Harbour] Re: CLASSES - Instance Variable as Object - Access/Assign Elsewhere

2010-04-23 Thread Mindaugas Kavaliauskas
Hi, On 2010.04.23 20:45, Pritpal Bedi wrote: I am just asking, which ChangeLog entry after 15 Mar highlighted this difference. Any. Any entry can change code size, this affect memory allocation, addresses of functions, and makes bug be visible or hidden. Based on this alone, I am about t

Re: [Harbour] Removal of non-UNICODE Windows codepath?

2010-04-30 Thread Mindaugas Kavaliauskas
Hi, I see no problem for Win 3.x and Win32s, we still have customers with Win9x. Many of the projects are contained in the only .exe file, so requirement of extra .dll is not nice. One more thing is that my libraries are non-UNICODE, but I do not see a big reason to do rewrite a working piec

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

2010-04-30 Thread Mindaugas Kavaliauskas
Hi, On 2010.04.30 12:39, dru...@users.sourceforge.net wrote: + added support for communication streams/channels which allow to send asynchronously data from server to client. The following client side functions had been added: NETIO_OPENDATASTREAM( [,] )

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

2010-05-03 Thread Mindaugas Kavaliauskas
Hi, thanks for this feature. It made me try to compile hbide after long time, but: --- Run-time Error! --- Error BASE/1132 Bound error: array access Called from HBQTUI:Q_TABLEFUNCLIST(0) Called from IDEFUNCTIONS:BUILDHEADER(210) Called from IDEF

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

2010-05-03 Thread Mindaugas Kavaliauskas
Hi, This error can only be there if hbide/resources/funclist.uic is missing. I know your uncanny attention to details and hence assume that you have compiled hbIDE at its standard location. OR you are executing hbIDE from location without "resources" subfolder and contents to from hbIDE.exe.

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

2010-05-03 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 00:07, Pritpal Bedi wrote: Thanks, for column blocks! Do you have plans for doing blocks persistent and implementing line blocks? :) Can you please explain a little about your idea of persistency and line blocks. Persistent blocks remains marked after you move a cursor to a

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

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 13:35, Viktor Szakáts wrote: but not change the clipboard ! I agree. Though it's even better to make the error text selectable and copiable. This is how it's done in all modern tools. No need to reinvent anything here. Do you know that Windows' MessageBox has copy functio

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

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, I have just realized that blocks are not copyable to other file. Will fix in a while. Moving the block is something new to me and is easy. Which key should be designated to move, Ctrl+M ? I do not know the "correct" key mappings for various operations. It is a question of mappings, but I

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

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 16:31, Pritpal Bedi wrote: + Implemented: persistent blocks and cut/copy/paste operations across files and locations within the same file. Perhaps this is implemented in .cpp level only yet. I can not find a way to switch persistent block mode on. If I am takin

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

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 16:58, Pritpal Bedi wrote: After any cursor movement, block is not marked any more :( I've rebuild the whole contrib, and hbide. Maybe I have to do something more? This is valid for block selection mode. Stream selection does not have it. If it is block selection mode, it is p

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

2010-05-04 Thread Mindaugas Kavaliauskas
On 2010.05.04 18:02, Pritpal Bedi wrote: Line Block: does it pertains to a single line always ? Yes, if I understand your question. Starting and ending line selection mark (without any cursor movement), marks current line. If DOWN (or UP) is pressed between start mark and end mark, then two

Re: [Harbour] HBNetIO file functions

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 17:30, Alex Strickland wrote: Maybe this small test will help someone to see how easy it is to read and write non DBF files using netio RPC. The primary purpose of NETIO was file sharing, so, it supports this functionality even without RPC and without any Harbour level overh

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

2010-05-06 Thread Mindaugas Kavaliauskas
Hello, + Implemented: line selection mode. Designated key is F11. It is still a work in progress but a working prototype is there and currently selection is available and paste behaves the standard way. Mindagaus, please explore as the artifacts are OK. My name is M

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

2010-05-07 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.06 21:46, Pritpal Bedi wrote: I need your valuable input exactly how must these behave in different circumstances. You also update me if the selection behavior is upto expectations or not. Also please check for all three variants I committed r14440. Also explain a little why the

Re: [Harbour] Slow create index under threads

2010-05-10 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.10 12:20, rafa wrote: Well, times; 1 thread= 29 minutes THE WINNER! 4 threads = 93 minutes WoW! 7 threads = 68 minutes 5 Threads = 64 minutes It seems disk io is the bottle neck. You can try to use memio driver to create index in memory, and later write it back to disk.

Re: [Harbour] Slow create index under threads

2010-05-11 Thread Mindaugas Kavaliauskas
Hi, Please could you tell me how to create the index in memory and then flush to disk? OrdCreate("mem:file.ext", ...) I've sent C code for copying file from/to memory a few days ago. These crea() threads do not help to do any valuable job. Function aCreateIndexe() starts a separate crea()

Re: [Harbour] Slow create index under threads

2010-05-11 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.11 12:22, rafa wrote: Of cause. Did you expect your code to behave in a different way?... I thought he reindex all at once ;-) The reason is because only one index reindex a table, while the others wait, I do not know. The reason is hb_dbdetach(), hb_dbattach(). Workarea is at

Re: [Harbour] Slow create index under threads

2010-05-11 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.11 18:52, rafa wrote: Second; A question What advantages are there in using indexes MEMORY? Rafa, you've completely changed the original idea: >> OrdCreate("mem:file.ext", ...) >> I've sent C code for copying file from/to memory a few days ago. > Ok, thanks! > I add MEMORY a co

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

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 03:27, dru...@users.sourceforge.net wrote: + harbour/src/rtl/hbcom.c + added Harbour multiplatform serial port C API (hb_com*() functions). implemented code for *nixes, MS-Windows and OS2. DOS is not supported yet. Please make test on different platforms.

[Harbour] :__enumKey()

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, perhaps this is a known issue, but looks like a strange limitation of __enumKey() message. This code could not be compiled because of: test202.prg(5) Warning W0031 Invalid variable 'XVALUE' for enumerator message FUNC main() LOCAL xValue FOR EACH xValue IN {'a'=>'A', 'b'=>'B'} ?

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

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 16:04, Przemysław Czerpak wrote: I has a code that seems does not fit under the new code. I have a simple button (well, there is a RS-latch to avoid contact bouncing) and I need to record time when the button is pressed. Button is connected to DSR (or CTS), so I need some way

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

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 16:21, Mindaugas Kavaliauskas wrote: I've very surprised :( I expected to be some way to wait for line change event in POSIX/UNIX/Linux. I just guessed that there is a way to make line change to emit error condition, ex., ioctl(fd, TIO_ERROR_ON_CHANGE, TIO_DSR)); Looki

Re: [Harbour] [r|s]ddoci

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 17:11, Horodyski Marek (PZUZ) wrote: When I try mix link ODBC and OCI i one app ( via ODBC still connet to MSSqlServer) : REQUEST SDDODBC, SDDOCI, SQLMIX libs=sddoci sddodbc Have I : Generating C source output to 'C:\TEMP\test1.c'... Done. c:/harbour/lib/win/mingw/libsddo

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

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.15 11:32, dru...@users.sourceforge.net wrote: * use hb_oleDispInvoke() - please test if activex controls still work correctly I do not use ActiveX, so no chance to test, but line olecore.c#1091 could be changed to: if( pParams->rgvarg[ iCount - i ].n1.n2.vt & VT_

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

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.15 00:36, vouch...@users.sourceforge.net wrote: % Many artifacts belonging to horizontal scroll while text is selected. Also few aspects are optimized. To me it appears as if selection protocol in hbIDE is OK. Please post your experiences if something is no

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

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, Can you please check after r14491. 3) Block forget about makting mode on paste Test (continuation of previous test): Ctrl+C (one line copied to clipboard) move cursor to the middle of any line Ctrl+V (line is pasted in a stream mode instead of line mode - bad) Now line blo

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

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.16 02:13, Pritpal Bedi wrote: 4) Persistent selection does not work if a use a mouse to position cursor. Test: F11 Down Down F11 Position cursor before the block using mouse Position cursor after the block using mouse (block is not select

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

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, I still can. Screencast at www.dbtopas.lt/hrb/f11.avi f11.avi clearly indicates that your claim is valid. But for "mysterious" reasons I cannot reproduce it on my machine. Can you so test after hbQT rebuild ? It seems hbqt clean rebuild helped. Thank You. I want implement the follo

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

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.17 14:37, dru...@users.sourceforge.net wrote: + added to C functions: int hb_dynsymToNum( PHB_DYNS pDynSym ); PHB_DYNS hb_dynsymFromNum( int iSymNum ); which can be used to make conversion between dynamic symbols and numbers It is interest

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

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.17 17:05, Pritpal Bedi wrote: Please examine. Alternatively you can look into ideshortcuts.prg. Let me know it more constructs are needed. I do not find: ::startSelection() ::stopSelection() ::toggleColumnSelectionMode() Regards, Mindaugas __

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

2010-05-17 Thread Mindaugas Kavaliauskas
On 2010.05.17 17:43, Pritpal Bedi wrote: Mindaugas Kavaliauskas wrote: I do not find: ::startSelection() ::stopSelection() ::toggleColumnSelectionMode() There are three methods: ::toggleColumnSelectionMode() ::toggleLineSelectionMode() ::clearSelection() "t

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

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, It is interesting, what new code is behind this modifications? :) Remote function/method execution or that? :) Yes. I've wrote inproc OLE server for Harbour and it uses above functions to convert function/method/memvar symbols to DISPID in GetIDsOfNames() dispatch method and they are late

[Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Hi, I'm trying to find a way to compile WinCE executable on WinXP. It is not very clear for me, what compilers/tools should be installed to do this? I prefer MinGW CE, but googling does not give an answer, that mingw CE is. Are "mingwce" and "cegcc" the same thing? (It seems cegcc is for lin

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
ADME_MINGWARM. From the point you have this installed, just follow the example in INSTALL to create a build. Brgds, Viktor On Thu, Jun 25, 2009 at 10:24 AM, Mindaugas Kavaliauskas wrote: Hi, I'm trying to find a way to compile WinCE executable on WinXP. It is not very clear for me, what

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Hi, Przemyslaw Czerpak wrote: I'm trying to find a way to compile WinCE executable on WinXP. It is not very clear for me, what compilers/tools should be installed to do this? I prefer MinGW CE, but googling does not give an answer, that mingw CE is. Are "mingwce" and "cegcc" the same thing? (

[Harbour] HB_CTOT() bug

2009-06-25 Thread Mindaugas Kavaliauskas
Hi, -- PROC main() LOCAL tNow, cNow tNow := HB_DATETIME() cNow := HB_TTOC(tNow, "-MM-DD", "HH:MM:SS.FFF") ? cNow ? HB_CTOT(cNow, "-MM-DD", "HH:MM:SS.FFF") RETURN -- prints: -

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Chen Kedem wrote: (opps sent too early) group_id 173455 is http://sourceforge.net/projects/cegcc and the file can be found in the download section for Package "cegcc" Release "0.51.0" http://sourceforge.net/project/showfiles.php?group_id=173455&package_id=198682&release_id=559788 Hi, thank

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Hi, Please try with the INSTALL example as is. I've already did it, before writing the letter but without success... :/ The same 193 error. INSTALL already contains a large amount of information which needs to be maintained, so I've intentionally left out anything which is related to C

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: Ops, fixed: --- set PATH=C:\mingw32ce\bin rem set HB_BIN_COMPILE=C:\hb-mingw\bin set HB_PPGEN_PATH=%HB_BIN_COMPILE% rem set HB_INSTALL_PREFIX=C:\hb call make_gnu.bat %1 %2 > log.txt 2>&1 --- log.

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Hi, Please try with the INSTALL example as is. I've already did it, before writing the letter but without success... :/ The same 193 error. I think I'm on a good road. All this time I was thinking, how can windows can complain about bad executable format (error 193) for "gcc" executable, b

Re: [Harbour] WinCE compile

2009-06-25 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: - If you feel unconfortable with Cygwin shell, you can use gzip and GNU Tar to unpack it from Windows command line, using these commands: > gzip -d cygwin-cegcc-mingw32ce-0.51.0-1.tar.gz > tar -xvf cygwin-cegcc-mingw32ce-0.51.

[Harbour] CTOD() Clipper compatibility issue

2009-06-25 Thread Mindaugas Kavaliauskas
Hi, C:\cawi32\sample\test>cat test172.prg PROC main() SET(4, "-MM-DD") ? CTOD("2009-06-25 Hello") ? CTOD("2009-06-25 12:13:14") RETURN C:\cawi32\sample\test>TEST172.EXE 2009-06-25 2009-06-25 C:\cawi32\sample\test>hbrun test172.prg 2009-06-25 - - Regards, Mindaugas ___

Re: [Harbour] CTOD() Clipper compatibility issue

2009-06-26 Thread Mindaugas Kavaliauskas
Hi, Thank You! I'm still very impressed about the level of your compatibility tests Regards, Mindaugas Przemyslaw Czerpak wrote: On Thu, 25 Jun 2009, Mindaugas Kavaliauskas wrote: Hi, C:\cawi32\sample\test>cat test172.prg PROC main() SET(4, "-MM-DD")

Re: [Harbour] minimal hbqt app

2009-07-01 Thread Mindaugas Kavaliauskas
Hi, I'm not sure if I'm not off topic, but demoqt.prg uses QWebView(), this makes to include QtWebKit and QtNetwork. I've deleted this part of demo and also STATIC FUNC Dummies(), and I was able to run demoqt.exe with QtCore4, QtGui and mingwm10 .dlls only. Regards, Mindaugas Lorenzo Fio

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

2009-07-02 Thread Mindaugas Kavaliauskas
2009-07-02 11:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * include/hbdefs.h + Added new hbBool type. Hi, just on type name convention... If we have HB_ULONG, perhaps it should be HB_BOOL. Though, HB_ULONG has a different meaning than native ULONG. HB_INT, HB_BOOL, HB_ULONG,...

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

2009-07-02 Thread Mindaugas Kavaliauskas
Hi, Take a look inside hbdefs.h, there is a new type name system under development, it uses "hbType" naming convention and the plan is to replace currently used basic types which use inconsistent naming schemes and have many collisions with Windows and other systems / libs. Oh, I've never loo

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

2009-07-03 Thread Mindaugas Kavaliauskas
+ implemented OS independent task switching system Have a fun with new toy ;-) Hi, great! I found my 11 years old assembler code implementing such thing for Turbo Pascal, but I could not imagine, this can be done in a platform independent, compiler independent, and portable way.

Re: [Harbour] UINT usage in non-Windows core sources

2009-07-03 Thread Mindaugas Kavaliauskas
Here is the (not very long) list of UINT Windows type usage in non-Windows Harbour source code. I'd like to ask developers to take a look at it and change to use some ANSI C types wherever possible. --- contrib/rddsql/hbrddsql.h:167: UINT Leaf; contrib/rddsql/hbrddsql.h:168:

Re: [Harbour] About hbextern...

2009-07-20 Thread Mindaugas Kavaliauskas
troff is nice. Also pdf would be it. I can recommend hbhpdf in contrib, it's a very nice (and portable) pdf generation lib, all components are there ready to use. Hi, if LaTeX output will be available, I can promise a .dvi, .ps, and .pdf :) Regards, Mindaugas ___

[Harbour] HB_RAT()

2009-07-20 Thread Mindaugas Kavaliauskas
Hi, HB_RAT(cToken, cString, nStart, nEnd) ignores nEnd, if it is "out of bound". I feel is more natural "out of bound" string be an empty string. Example: I want to iterate over all "/" characters from right to left. cPath := "/aaa/bbb/ccc" nI := LEN(cPath) DO WHILE(nI := HB_RAT("/", cPath,,

Re: [Harbour] Remote rdd

2009-07-23 Thread Mindaugas Kavaliauskas
Hi, I haven't check details of the recent xHarbour modifications but ChangeLog and short look at .diff suggests that the same effect can be reached by adding support for above virtual file handles and implementing dedicated for Harbour trivial file server so using existing DBF* RDDs Harbour use

Re: [Harbour] UHTTPD

2009-07-23 Thread Mindaugas Kavaliauskas
Hi, should be hb_parnidef(). Thank You. Regards, Mindaugas Jaroslaw Kadziola wrote: hbmk2 uhttpd.hbp Error E2227 socket.c 238: Extra parameter in call to hb_parni in function HB_FUN_SOCKET_SEND *** 1 errors in Compile *** ___ Harbour mailing li

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

2009-08-26 Thread Mindaugas Kavaliauskas
Hi, after a month break I'm back from N42.2217 E78.4485 and back on the list. I'll try to read mail and answer some questions. 2009-08-26 02:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbapifs.h * harbour/source/rtl/filebuf.c + added hb_fileExists() and

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

2009-08-26 Thread Mindaugas Kavaliauskas
Hi, after a month break I'm back from N42.2217 E78.4485 and back on the list. I'll try to read mail and answer some questions. Wow, that is a remote part of the world! Did you camp at 4200m? The highest camping place was at 4150m. Highest peak reached at 4721m (coordinates above are for an

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

2009-08-26 Thread Mindaugas Kavaliauskas
Hi, That's quite nice. Why peaks were these? These are peaks with Lithuanian names in Tian Shan mountains: Akstinas, Zalgiris, Mazvydas, etc. Regards, Mindaugas ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.o

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

2009-08-26 Thread Mindaugas Kavaliauskas
Hi, BTW, I guess some MT lock should be moved from s_file*() to hb_file*(). s_fileMtx and s_openFiles are static variable, and it is not possible to implement for example MT safe file close function for additional file protocols. Perhaps additional functions to insert/delete items into/from

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

2009-08-26 Thread Mindaugas Kavaliauskas
Hi, 2009-08-21 19:19 UTC-0800 Pritpal Bedi (prit...@vouchcac.com) * contrib/hbwin/axcore.c + __AXDOVERB(), a very important function for in-process active-x controls There are a few things I do not like in this: 1) Passing of the message is not supported in this function. I understan

Re: [Harbour] mingw64 4.5.0 warnings

2009-08-28 Thread Mindaugas Kavaliauskas
Hi, x86_64-w64-mingw32-gcc -I. -I../../../../../../include -Wall -W -O3 -fomit-frame-pointer -IC:\devl\Firebird-2.1.2-x64\include -ofbirddd.o -c ../../../fbirddd.c ../../../fbirddd.c: In function 'fbConnect': ../../../fbirddd.c:166:26: warning: initialization makes integer from pointer withou

Re: [Harbour] mingw64 4.5.0 warnings

2009-08-31 Thread Mindaugas Kavaliauskas
Hi, What is correct way to initialize handler? isc_db_handle db = NULL; // wrong on 64bits isc_db_handle db = 0; // wrong on 32bits Probably some clever macros :) Maybe there is something already defined in FB headers. After all they should also need something like this. I've tried

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

2009-08-31 Thread Mindaugas Kavaliauskas
2009-08-09 11:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * source/rtl/rat.c ! HB_RAT() fixed to not ignore nEnd parameter if it's out of bound. In such case it will now return zero ("not found"). Mindaugas, please verify if this is what you proposed. Hi, yes. Thank You.

[Harbour] OLE

2009-09-01 Thread Mindaugas Kavaliauskas
Hi, I have problems with OLE and variables by reference, exemple: ---cut--- oOle = Win_OleCreateObject( "NFe_Util_PL005a.Util" ) cName = "" cMess = "" oOle:PegaNomeCertificado( @cName, @cMess ) ? cName,cMess ---cut--- I have not implemented references in OLE because of a simple reason: I was

Re: [Harbour] Trouble with ole

2009-09-02 Thread Mindaugas Kavaliauskas
Hi, Horodyski Marek (PZUZ) wrote: I try modify opened excel sheet, but this code : Local oExcel, oAs if ( oExcel := win_oleCreateObject( "Excel.Application" )) == Nil ok( 'Error ...') Return end cls * oExcel:WorkBooks:Add() // <-- when I uncommet this line, all is ok oAS := oExcel:Active

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

2009-09-02 Thread Mindaugas Kavaliauskas
Hi, + added new library: HBNETIO. Great! :) s_netio_exit: if( s_fInit ) // should be ! s_fInit { hb_socketCleanup(); s_fInit = TRUE; } Regards, Mindaugas ___ Harbour mailing list Harbour@harbour-project.org http://l

Re: [Harbour] ActiveX

2009-09-03 Thread Mindaugas Kavaliauskas
Hi, Looking at the code I see one important difference between our new AX code and GTWVG/HWGUI. New AX code calls lOleError = HB_VTBL( pCPC )->FindConnectionPoint( HB_THIS_( pCPC ) HB_ID_REF( IID_IDispatch ), &pCP ); to take connection point but GTWVG

Re: [Harbour] ActiveX

2009-09-03 Thread Mindaugas Kavaliauskas
... and yet somehow, it works ... I just tested with this rather weird EFT ActiveX I have been given to talk to, and Przemyslaws new code. Unless the GPF you warn of is on the last event :) Can you debug: what interface you connect to (value of rriid after connection point enumeration loop)? W

Re: [Harbour] ActiveX

2009-09-03 Thread Mindaugas Kavaliauskas
If I understand you well then we should remove the rriid ISink member and modifiy this code: for( ;; ) { lOleError = HB_VTBL( pEnumCPs )->Next( HB_THIS_( pEnumCPs ) 1, &pCP, NULL ); if( lOleError != S_OK ) break; if( HB

Re: [Harbour] ActiveX

2009-09-03 Thread Mindaugas Kavaliauskas
My BPTI ActiveX uses EnumConnectionPoints and GetConnectionInterface as FindConnectionPoint fails. It seems to work fine, I get events that I expect. But, like MSCAL it GPF's on exit. Can you enumerate and print all available BPTI connection interfaces and try if these interfaces are available

Re: [Harbour] ActiveX

2009-09-03 Thread Mindaugas Kavaliauskas
This is all well and good again, but begs another question: "How does a client know the IID it wants to connect to?" Excellent question! There are two possible answers: Actually, the first method is known and implemented, but the second is not clear for me. From OLE View bundled with VB6:

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

2009-09-04 Thread Mindaugas Kavaliauskas
Hi, 2009-09-03 23:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbwin/axcore.c ! removed the hack I added in previous commit with interface enumeration which was accepting any interface without validation its ID. + added 3-rd parameter to __AXREGISTER

Re: [Harbour] ActiveX

2009-09-04 Thread Mindaugas Kavaliauskas
Hi, Alex Strickland wrote: To debug, in axcore.c I put: if( cID ) { wchar_t* wCLSID = hb_mbtowc( cID ); MessageBox(NULL, "cID", cID, MB_OK); lOleError = CLSIDFromString( wCLSID, &rriid ); hb_xfree( wCLSID ); } MessageBox(NULL, WIN

Re: [Harbour] ActiveX

2009-09-04 Thread Mindaugas Kavaliauskas
Actually if I try a console app: static oMSCAL:="fred" static oBPTI memvar oMainWindow public oMainWindow function Main() ? "Hello world!" ? oMSCAL return nil It also fails on the second ? line. Is this a regression, or am I being thick? Use -n compiler switch. Regards, Minda

Re: [Harbour] MultiThreads

2009-09-04 Thread Mindaugas Kavaliauskas
/When I need to compile a harbour code in console mode and need to use //MultiThreads, I use -mt nodifier to include //libhbvmMT.a instead libhbvm.a I like to know what problems or disadvantages could be generated if I use this by default , in programs that not use //MultiThreads MT cau

Re: [Harbour] SQL RDD

2009-09-11 Thread Mindaugas Kavaliauskas
Hi, Lucas De Beltrán wrote: In Harbour, is there a RDD for SQL, so I keep the same code (such as SELECT ("INFO"), SET FILTER, PACK, etc). RDDSQL gives possibility to obtain SELECT query result via RDD API, but it does not support PACK. There is no PACK query in SQL. Regards, Mindaugas ___

Re: [Harbour] ActiveX

2009-09-11 Thread Mindaugas Kavaliauskas
Hi, Do you think it is worth having a function to manually shut down the connection point, as HWGUI does? It seems that Release() is never called, for whatever reason. I'm really sorry, but I have nothing to do, if you are talking about HWGUI. SELF CONTAINED samples would help to solve the

Re: [Harbour] Problems with ADORDD.

2009-09-11 Thread Mindaugas Kavaliauskas
Hi, Oci is like a dream. I managed in test app to get through the OCI into the base of pure C code, but in C I not know how to write users application. Unfortunately, ODBC, despite many attempts I was not able to connect to the database, and through ADO, you can easily connect. Problems begi

Re: [Harbour] Harbour clang static analyzer results

2009-09-11 Thread Mindaugas Kavaliauskas
Hi, ../../../sqlmix.c:1110:22: warning: Dereference of null pointer if ( pNode->Leaf ) static void hb_mixTagSkip( PMIXTAG pTag, LONG lSkip ) { PMIXNODE pNode, pNode2; unsigned int uiPos, uiPos2; pNode = pTag->CurNode; uiPos = pTag->CurPos; if ( lSkip > 0 ) {

Re: [Harbour] Problems with ADORDD.

2009-09-11 Thread Mindaugas Kavaliauskas
Tomaž Zupan wrote: You can try ORACLE 10g Express Edition, which is much smaller. http://www.oracle.com/technology/products/database/xe/index.html Minimal install file is 165MB. Perhaps, I'll wait for Viktor. :) Regards, Mindaugas ___ Harbour mailin

Re: [Harbour] Problems with ADORDD.

2009-09-11 Thread Mindaugas Kavaliauskas
Hi, Oracle has let Oracle XE as free database server for commercial users with limited (one procesor, 4Gb quota for data files etc.). This Express database is good for test and has only 150Mb. It is like 10g version. I can send it for you via normal post on CD. Thank, You. I can download it,

Re: [Harbour] Error using OLE

2009-09-15 Thread Mindaugas Kavaliauskas
Hi, oWord = CREATEOBJECT( "Word.Application" ) oWord:Documents:Add() oWord:Visible = .T. RETURN NIL stops with Error TOleAuto/65535 : TOLEAUTO:NEW Called from THROW(0) Called from TOLEAUTO:NEW(0) Called from CREATEOBJECT(0) Called from MAIN(5) It works fine using xHarbour. What a

Re: [Harbour] Another OLE problem

2009-09-15 Thread Mindaugas Kavaliauskas
Hi, Przemyslaw Czerpak wrote: FUNCTION MAIN() LOCAL oWord oWord = WIN_OLECREATEOBJECT( "Word.Application" ) I have a question here. In your previous example you used: oWord = CREATEOBJECT( "Word.Application" ) I'm interesting if using WIN_OLECREATEOBJECT() resolved the problem you rep

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Mindaugas Kavaliauskas
Lorenzo Fiorini wrote: In contrib/hbtip/sendmail.prg these lines: ... the standard requires Cr+Lf and servers like QMail reject messages with ONLY Lf reporting: 451 See http://pobox.com/~djb/docs/smtplf.html while others like Postfix accept them but report: 354 End data with . Using Chr( 13 )

[Harbour] MT compile warning

2009-09-21 Thread Mindaugas Kavaliauskas
Hi, code: PROC main() #pragma begindump #include "hbthread.h" static HB_CRITICAL_NEW( s_mtx ); void somefunc( void ) { HB_CRITICAL_INIT( s_mtx ); } #pragma enddump causes warning on BCC: Warning W8075 test.prg 7: Suspicious pointer co

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

2009-09-21 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: In first test on darwin, I'm getting this: (with clang, but similar errors happened when trying with gcc) --- /Developer/usr/bin/clang -I. -I../../../../../include -DHB_CC_CLANG -fno-common -Wall -W -O3-o iodmem.o -c ../../../iodmem.c ../../../iodmem.c:686:4: warning:

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

2009-09-21 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: Is there any particular reason you choose a name without 'hb' prefix? I'd like to add make files and rename it to hbmemio, if possible. I'm not sure we should start a new special prefix to store IO replacement libs yet. Or, maybe we could rename both this lib and hbnetio t

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

2009-09-22 Thread Mindaugas Kavaliauskas
Hi, And most importantly thanks for this contribution, I think it's a very nice one and can easily replace any temp tables created on disk. I'll now go and convert my app to use it. the primary idea was more a toy I/O driver than the really useful addition to harbour. Linux users can reach a

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

2009-09-22 Thread Mindaugas Kavaliauskas
Hi, Przemyslaw Czerpak wrote: Ups, I see you were replying to Mindaugas message with test code. I haven't tested it yet by I guess you did not remove tables and indexes created in memory. Use dbDrob() before application exit. I'll add automatic memory file system cleanup on application exit.

Re: [Harbour] hbmemio issue

2009-09-22 Thread Mindaugas Kavaliauskas
Hi, Viktor Szakáts wrote: My very first problem towards implementing hbmemio as a replacement for temp tables is that I'd need to create *unique* "filenames". BTW the same problem goes to hbnetio, where I sometimes need to create unique temp files (which later get renamed to final table name)

<    1   2   3   4   5   6   7   8   >