My suggestion is not use such function at all.

Brgds,
Viktor

On 2010 Mar 27, at 12:57, Shum wrote:

> 
> Hi Viktor, 
> 
> I often ask some function which I need here dueto I am not a C programer,
> I cannot write C (low level) function for myseft within harbour as I like.
> 
> However,  I follow the C and Harbour style ... and try to write the
> StrngOf(nPtr) function aas follow:
> Please point me if it is correct or not ....
> 
> 
> 
>    #pragma begindump
>      #include "hbwapi.h"
>      #include "hbapiitm.h"
> 
>      HB_FUNC( STRINGOF )
>      {
>        PHB_ITEM pTemp = hb_itemNew( NULL );
>        pTemp = hb_parni(1);
>        HB_RETSTR( hb_itemGetCPtr( pTemp ) );
>        hb_itemRelease( pTemp );
>      }
> 
>    #pragma enddump
> 
> 
> However, I donot know if hb_parni(1)  is right or not ...or please point out
> anything wrong ?
> 
> 
> Shum
> -- 
> View this message in context: 
> http://n2.nabble.com/Ask-Str2Poniter-and-Pointer2Str-function-pair-tp4803834p4808872.html
> Sent from the harbour-devel mailing list archive at Nabble.com.
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to