Re: [Harbour] 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED]

2008-10-21 Thread Przemyslaw Czerpak
On Tue, 21 Oct 2008, Miguel Angel Marchuet wrote: Hi Miguel, 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED] * contrib/xhb/hbcompat.h + added compatibilities. Thank you for modifications but this one: #define hb_retclenAdoptRaw( szText, ulLen ) hb_retclen_buffer(

Re: [Harbour] 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED]

2008-10-21 Thread Szakáts Viktor
Hi folks, I wanted to note something similar, as I remember converting xhb code to Harbour, and these weren't exactly equivalent. Brgds, Viktor On 2008.10.21., at 13:45, Przemyslaw Czerpak wrote: On Tue, 21 Oct 2008, Miguel Angel Marchuet wrote: Hi Miguel, 2008-10-21 13:17 UTC+0100 Miguel

Re: [Harbour] 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED]

2008-10-21 Thread Miguel Angel Marchuet
Is possible, what do you thing about this function. Can i use hb_retclenAdopt instead of hb_retclenAdoptRaw in this case ? or is necessary ? HB_FUNC( UTF8TOWIDE ) // ( cAnsiStr ) - cWideStr { char *cString = hb_parc( 1 ); if( cString ) { BSTR wString = hb_oleUTF8ToWide(

Re: [Harbour] 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED]r

2008-10-21 Thread Przemyslaw Czerpak
On Tue, 21 Oct 2008, Miguel Angel Marchuet wrote: Hi Miguel, Is possible, what do you thing about this function. Can i use hb_retclenAdopt instead of hb_retclenAdoptRaw in this case ? or is necessary ? You have to and in this case you should 1-st fix the conversion code or it may cause

Re: [Harbour] 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED]r

2008-10-21 Thread Miguel Angel Marchuet
Many thks for you help. I like too upload this function and other similars to harbour's cvs Where do you think is the best site to upload it ? Best regards, Miguel Angel Marchuet Przemyslaw Czerpak escribió: On Tue, 21 Oct 2008, Miguel Angel Marchuet wrote: Hi Miguel, Is

Re: [Harbour] 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet [EMAIL PROTECTED]r

2008-10-21 Thread Szakáts Viktor
Hi Miguel, contrib/hbwin Note that there are already almost exactly the same functions (except the encoding setting) for ANSI/WIDE conversion in win_ole.c. You may want to take a look at them. Maybe the best would be to have all these Win text conversions gathered in one .c file. Brgds,