Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Viktor Szakáts
> Hello Rossine, > > This functions are for a special need for Shum, and in no way As per Shum he only needs it to make Xbase++ program _link_. So I believe he could just use these simple dummies until the code is fixed properly: FUNCTION String2Pointer() RETURN 0 FUNCTION Pointer2String()

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Teo Fonrouge
Hello Rossine, This functions are for a special need for Shum, and in no way are required in a normal Harbour programming session. Bellow you'll find a sample that illustrates of what they do. On Mar 29, 2010, at 8:04 AM, Rossine wrote: > > Hi, > > I'm trying to use the function of you and me

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Viktor Szakáts
Hi, > I myself would not use on a daily basis something like this, but I do > not know for sure to which particular need it would be useful. It's > just an example and as I mentioned above, I agree with Viktor that > something of this kind is strongly discouraged. In such case it may be better so

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Vailton Renato
Hi, I myself would not use on a daily basis something like this, but I do not know for sure to which particular need it would be useful. It's just an example and as I mentioned above, I agree with Viktor that something of this kind is strongly discouraged. Regards, Vailton Renato

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Przemysław Czerpak
On Mon, 29 Mar 2010, Szak�ts Viktor wrote: Hi, > Looks like we're starting to resemble xhb. I hope not. xHarbour reach the level where core developers have serious problems to control the code and understand/know all hacks inside and all internal dependencies created by direct accessing of HVM s

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Viktor Szakáts
Looks like we're starting to resemble xhb. Brgds, Viktor On 2010 Mar 29, at 21:43, Rossine wrote: > > Hi Vailton, > > Great :) > > Many, many thanks :) > > Rossine. > > > Vailton Renato wrote: >> >> Hi! >> >> To support MT need this: >> >> [GETADDRESS.C] >> #include "hbvmopt.h" >> #incl

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Viktor Szakáts
This code uses internals, which it a total no-no, for user code. Brgds, Viktor On 2010 Mar 29, at 21:15, Vailton Renato wrote: > Hi! > > To support MT need this: > > [GETADDRESS.C] > #include "hbvmopt.h" > #include "hbapi.h" > #include "hbapiitm.h" > #include "hbstack.h" > > HB_FUNC( _GETADD

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Rossine
Hi Vailton, Great :) Many, many thanks :) Rossine. Vailton Renato wrote: > > Hi! > > To support MT need this: > > [GETADDRESS.C] > #include "hbvmopt.h" > #include "hbapi.h" > #include "hbapiitm.h" > #include "hbstack.h" > > HB_FUNC( _GETADDRESS ) > { >PHB_ITEM pItem = hb_param( 1, H

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Vailton Renato
Hi! To support MT need this: [GETADDRESS.C] #include "hbvmopt.h" #include "hbapi.h" #include "hbapiitm.h" #include "hbstack.h" HB_FUNC( _GETADDRESS ) { PHB_ITEM pItem = hb_param( 1, HB_IT_ANY ); PHB_ITEM pResult = hb_itemNew( NULL ); char buffer[ 16 ]; memset( buffer, 0, sizeof( b

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Rossine
Hello Vailton, It´s works fine :) Many thank´s, Rossine. Vailton Renato wrote: > > Hi! > > I agree with Viktor that this type of access is not recommended > because it represents a great risk to system stability. But just to > illustrate, if you want to get the memory address of a particula

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Vailton Renato
Hi! I agree with Viktor that this type of access is not recommended because it represents a great risk to system stability. But just to illustrate, if you want to get the memory address of a particular variable (I do not see much use in it but ..) this is an example: [TEST.PRG] #include "simpleio

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Viktor Szakáts
> The code does not compile because it contains errors. What is the > purpose of these functions? I really could not understand it. > = ( It's a pretty bad notion from recent days, and I'd still strongly suggest everyone to not use such functions unless the goal is to create random crashes and H

Re: Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Vailton Renato
Hi! The code does not compile because it contains errors. What is the purpose of these functions? I really could not understand it. = ( [code] FUNCTION Main LOCAL pFunc := ( @Test() ) cls ? Valtype( pFunc ) ? POINTER2STRING( pFunc ) ? RETURN NIL function Test ? "h

Re: Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-29 Thread Rossine
Hi, I'm trying to use the function of you and me errors occur below: [CODE] function Main LOCAL pFunc := ( @Test() ) cls ? Valtype( pFunc ) ? POINTER2STRING( pFunc ) return NIL function Test ? "hello word" return NIL #pragma begindump #include "hbapi.h" HB_F

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-27 Thread Petr Chornyj
Hi Shum, If I remember correctly, you can find these functions in the library xhb (I mean HB_String2Pointer and HB_Pointer2Str) Regards, Petr -- View this message in context: http://old.nabble.com/Ask-Str2Poniter%28%29-and-Pointer2Str%28%29-function-pair--tp28042446p28053187.html Sent from

Re: [Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-27 Thread Teo Fonrouge
Hello Shum, On Mar 26, 2010, at 7:29 AM, Shum wrote: > > Hi Harbour developers, > > I would like to ask the Str2Pointer(cStr) and Pointer2Pointer(pPtr) function > ... > > Something like in xHarbour HB_String2Pointer(cStr) and ( > HB_Pointer2Str(pPtr,nByte) or Stringof() in C langurage ...) Ma

[Harbour] Ask Str2Poniter() and Pointer2Str() function pair ....

2010-03-26 Thread Shum
Hi Harbour developers, I would like to ask the Str2Pointer(cStr) and Pointer2Pointer(pPtr) function ... Something like in xHarbour HB_String2Pointer(cStr) and ( HB_Pointer2Str(pPtr,nByte) or Stringof() in C langurage ...) Shum -- View this message in context: http://n2.nabble.com/Ask-Str2Pon