Hello Viktor
Viktor Szakáts wrote:
>
> Here it is:
>
> if( HB_IS_OBJECT( pParam ) && hb_objHasMsg( pParam, "PPTR" ) && 0 )
> {
> hb_vmPushDynSym( hb_dynsymGetCase( "PPTR" ) );
> hb_vmPush( pParam );
> hb_vmSend( 0 );
> {
> PHB_ITEM pReturn = hb_stackReturnItem();
>
> QGC_POINTER * p = ( QGC_POINTER * ) hb_itemGetPtrGC( pReturn,
> gcFuncs() );
>
> if( p && p->ph )
> pRetVal = p->ph;
> else
> pRetVal = hb_itemGetPtr( pReturn ); /* TOFIX: This is
> dangerous. */
> }
> }
>
> And there is also HBQT_ISEQUALGCQTPOINTER.
>
We were thinking on the same lines at the same time I think.
I implemented in a different way and only now I am seeing
your message.
The code sbippet above is clean. Will try to substitute it.
It taught me one more lesson in C.
Regards
Pritpal Bedi
--
View this message in context:
http://old.nabble.com/Re%3A-SF.net-SVN%3A-harbour-project%3A-13280--trunk-harbour-tp26837939p26849399.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour