Hi Przemek,

>If possible please make simple test and add at the end of
>hb_oleItemToVariantRef() code:
>
>   if( pVarRef )
>   {
>      pVarRef->n1.n2.vt = VT_VARIANT | VT_BYREF;
>      pVarRef->n1.n2.n3.pvarVal = pVariant;
>   }

I do it and now all byref vars return NIL

>Now my list of OLE TODO is reduced to:
>   1. Should we add support to translate OLE arrays received from foreign
>      OLE code to Harbour items? Now we can only pass Harbour arrays as OLE
>      parameters.
>   2. Empty date in TOLEAUTO was send as VT_NULL. Should we replicate it?
>   3. HB_IT_POINTER support. Should we add it?
>
>I do not know if they are important for OLE programmers.

Well, I don´t know too. This is the first time that I found one OLE
that use byref and is very hard to found another.  In my case, all
byref is string type and your implementation is working just fine.

>Harbour does not make any of such tricks and as long as someone does
>not well document that it should be changed I want to keep this code.

As I saw, with my tests your code is working just fine, but  I´ll try
find another OLE in the net that use byref. If I found, I´ll do a
complete test with another types and post results here.


Thank you and best regards,

Toninho.

__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to