Re: [Harbour] RDDSQL

2008-11-27 Thread Mario H. Sabado
-- Message: 6 Date: Thu, 27 Nov 2008 02:19:40 +0200 From: Mindaugas Kavaliauskas <[EMAIL PROTECTED]> Subject: Re: [Harbour] RDDSQL To: "Harbour Project Main Developer List." Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Re: [Harbour] wince (wcecon not ruuning on PocketPc)

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Abeb wrote: Hi, > Yep it works now. > >We should probably thanks to Pritpal for his modifications. > not probably, but for sure, and the same goes to you,Przemyslaw. This probably was because I didn't check what was changed and by whom using SVN diff. I haven't made any mod

[Harbour] re:SQLRDD

2008-11-27 Thread Bruno Luciani
Hi Mindaugas , I realy looking for 2 things in the first place an rdd for postgres may be interesting But I am looking too for a class that simplifies and unify the use of sql databases. Like Python DB-API, I don 't know if anything like this exist in harbour I think Xharbour have a comercial ve

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Pritpal Bedi
Still better char * hb_xstrncpy( char * pDest, const char * pSource, ULONG ulLen ) { ULONG ulDst, ulSrc; pDest[ ulLen ] = 0; ulDst = strlen( pDest ); if( ulDst < ulLen ) { ulSrc = strlen( pSource ); if( ulDst + ulSrc > ulLen ) ulSrc = ulLen - ulDst; mem

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Pritpal Bedi wrote: Hi Pritpal, > >#if !defined( StringCchCat ) > > #ifdef UNICODE > > #define StringCchCat(d,n,s) hb_wcnCpy( (d), (s), (n) - 1 ) > > #else > > #define StringCchCat(d,n,s) hb_strnCpy( (d), (s), (n) - 1 )

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Pritpal Bedi
Hello Pritpal Bedi wrote: > > char * hb_xstrncpy( char * pDest, const char * pSource, ULONG ulLen ) > { >char *pBuf = pDest; > >pDest[ ulLen ] ='\0'; > >while( ulLen && ( *pDest++ = *pSource++ ) != '\0' ) > ulLen--; > >while( ulLen-- ) > *pDest++ = '\0'; > >r

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Pritpal Bedi
Hi Przemek Przemyslaw Czerpak-2 wrote: > >#if !defined( StringCchCat ) > #ifdef UNICODE > #define StringCchCat(d,n,s) hb_wcnCpy( (d), (s), (n) - 1 ) > #else > #define StringCchCat(d,n,s) hb_strnCpy( (d), (s), (n) - 1 ) > #endif >#endif > To tes

Re: [Harbour] wince (wcecon not ruuning on PocketPc)

2008-11-27 Thread Abeb
Yep it works now. >We should probably thanks to Pritpal for his modifications. not probably, but for sure, and the same goes to you,Przemyslaw. Thanks Przemyslaw Czerpak-2 wrote: > > On Sat, 15 Nov 2008, Abeb wrote: > > Hi, > >> is WinCe fix already? >> does anybody sucsessfuly run WinCe p

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Abeb
I did some modifications & bug fixes to this lib. mainly it checks if there is data in the buffer with the empty() function, which will return true even the is white space data in the buffer. i wish i can upload back my modifications. Barry Jackson wrote: > > What am I doing wrong? I am tryin

Re: [Harbour] Some ideas about Gtk Call Backs and xhgtk

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Rodrigo Miguel wrote: Hi Rodrigo, > Sure, I'll talk with other xhgtk developers and do a task force to > validate all parameters being passed and return the appropriate RT > Error. If you will have any questions about Harbour internals then I'll try to help. I do not think I

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Przemyslaw Czerpak wrote: > { > ulSrc = lstrlenW( srcW ); > if( ulDst + ulSrc > ulLen ) > ulSrc = ulDst - ulDst; Ups. It should be: ulSrc = ulLen - ulDst; best regards, Przemek ___ H

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Pritpal Bedi wrote: Hi Pritpal, > Now the showstopper: MSDN defines header and lib for the fiunction > StringCchCat() > strsafe.h and strsafe.lib > which is not available with BCC5.8. > What should I do? Create it yourself or define your own function or macro with such func

Re: [Harbour] Some ideas about Gtk Call Backs and xhgtk

2008-11-27 Thread Rodrigo Miguel
Hi Przemek, Sure, I'll talk with other xhgtk developers and do a task force to validate all parameters being passed and return the appropriate RT Error. By the way, I found the issue with g_signal_connect_data & gtk_opertaion... I need do a g_object_unref once I get done the printing. Thanks Rod

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Pritpal Bedi
Hello Przemek Przemyslaw Czerpak-2 wrote: > > Yes because it operates on char types. If you want to write the above > code which will work with and without UNICODE macro then you should > change it to use TCHAR. > TCHAR is single bute char when UNICODE macro is not set and two bytes > (USHORT)

Re: [Harbour] Some ideas about Gtk Call Backs and xhgtk

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Rodrigo Miguel wrote: Hi Rodrigo, > I think that's not related to harbour, because harbour close the > application gracefully. The issue happens with Gtk itself, when some > invalid pointer is handled or some unknown condition, I couldn't > identify that condition, it just ab

Re: [Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Pritpal Bedi wrote: Hi Pritpal, > The next day I was struggling with this code: >char szLibName[ MAX_PATH + 1 ] = { 0 }; >GetSystemDirectory( szLibName, MAX_PATH ); >hb_strncat( szLibName, "\\atl.dll", sizeof( szLibName ) - 1 ); >hLib = LoadLibrary( ( LPCSTR )

Re: [Harbour] Some ideas about Gtk Call Backs and xhgtk

2008-11-27 Thread Rodrigo Miguel
Hi Przemek, > Returning to your problem with GTK. When exactly the problem appears? > After RT error? Is it GTK bug or it's necessary to close Harbour > application without closing GTK. If you say sth more maybe I can help. I think that's not related to harbour, because harbour close the applicat

Re: [Harbour] Some ideas about Gtk Call Backs and xhgtk

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Rodrigo Miguel wrote: Hi Rodrigo, > I'm facing in some rare cases the "Warning, memory allocated but not > released: 1124 bytes (16 block(s))" due to the unfreed allocate HB > ITEM. For some unknown reason, when gtk is terminated abnormally, it > doesn't call the gc closure n

[Harbour] C and Unicode compliant string conversions

2008-11-27 Thread Pritpal Bedi
Hello Przemek and all, Note: I am not from C background so... The next day I was struggling with this code: char szLibName[ MAX_PATH + 1 ] = { 0 }; GetSystemDirectory( szLibName, MAX_PATH ); hb_strncat( szLibName, "\\atl.dll", sizeof( szLibName ) - 1 ); hLib = LoadLibrary( ( LPCSTR

Re: [Harbour] Closing relation

2008-11-27 Thread Przemyslaw Czerpak
On Wed, 26 Nov 2008, Mindaugas Kavaliauskas wrote: Hi Mindaugas, > thanks. I've solved my problem another way, I just do not open that > relation. But I was a little surprised that there is no way to close a > single relation in Clipper. > Perhaps, the only possible way to implement it (without

Re: [Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-11-27 Thread Przemyslaw Czerpak
On Wed, 26 Nov 2008, Mindaugas Kavaliauskas wrote: Hi Mindaugas, > One more remainder about i18n. We had a large discussion about i18n > internals, but that about it's public API? We have __*() functions: > __I18N_SAVE() > __I18N_LOADFROMMEMORY() > __I18N_LOAD() > __I18N_GETTEXT() > xHarbour has

Re: [Harbour] Error in latest SVN?

2008-11-27 Thread Pritpal Bedi
Przemek Przemyslaw Czerpak-2 wrote: > >#if defined(__BORLANDC__) && !defined(HB_ARCH_64BIT) > #undef MAKELONG > #define MAKELONG ((LONG)(((WORD)((DWORD_PTR)(a) & 0x)) | \ > (((DWORD)((WORD)((DWORD_PTR)(b) & 0x))) << > 16))) >#endif > It work

[Harbour] Some ideas about Gtk Call Backs and xhgtk

2008-11-27 Thread Rodrigo Miguel
Hello All, I'm facing in some rare cases the "Warning, memory allocated but not released: 1124 bytes (16 block(s))" due to the unfreed allocate HB ITEM. For some unknown reason, when gtk is terminated abnormally, it doesn't call the gc closure notify. Here are some examples that I'm using for: v

Re: [Harbour] Error in latest SVN?

2008-11-27 Thread Przemyslaw Czerpak
On Thu, 27 Nov 2008, Pritpal Bedi wrote: Hi Pritpal, > Now the warning with MAKELPARAM() where parenthis are suggested remains. It's a problem inside BCC header files. They are full of code which exploits BCC warnings. In newer BCC the situation is even worse :-(. Old problems still exists and n

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Barry Jackson
That's encouraging - my current version of the program that I want to write has been in use for years, but I wrote it using Xbase++ and it runs under Win98. It controls a Digital Video Recorder which is hidden and inaccessible. I am trying to change everything to Linux - hence this exercise. Chee

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Maurilio Longo
Barry, it should be enough for such an use, I was able to talk to a fiscal printer sending and receiving packets. I think it's enough to remove that function or, better, use the correct one for harbour. Best regards. Maurilio. Barry Jackson wrote: > Maurilio, > Many thanks for your reply. > OK

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Barry Jackson
Maurilio, Many thanks for your reply. OK that's fine- I will work around that function if I need to. The application I want to write will only be required to open a port and send character strings - there is no handshake so it should not be a problem. I just wanted to be sure that I was not the ca

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Maurilio Longo
Barry, this is a problem inside hbtpathy which comes from xharbour and uses a function (threadsleep) not available in harbour. So this has to be fixed in hbtpathy. BTW, I wrote it, and it is more of a proof of concept than a finished library that can be used on production systems. Best regards.

Re: [Harbour] Error in latest SVN?

2008-11-27 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "Pritpal Bedi" <[EMAIL PROTECTED]> A: Data invio: mercoledì 26 novembre 2008 23.32 Oggetto: Re: [Harbour] Error in latest SVN? I know about these warnings. Fist warning I do not how to handle. Next two warnings : I tried all combinations to parenthise indi

Re: [Harbour] Error in latest SVN?

2008-11-27 Thread Pritpal Bedi
Hi Saulius Zrelskis wrote: > > sorry, with >if( ( thisobj = ( IEventHandler * ) GlobalAlloc( GMEM_FIXED, > sizeof( MyRealIEventHandler ) ) ) == NULL ) > thisobj = ( IEventHandler * ) GlobalAlloc( GMEM_FIXED, sizeof( MyRealIEventHandler ) ) if( thisobj ) { } also covers it. Thanks for the