Viktor,

Recently you modified contrib\hbwin\legacy.prg and added this code to
support Windows (numeric) handles for creating an oleauto object:

   IF ISNUMBER( xOle )   // xOle is a pDisp
      xOle := win_N2P( xOle )
   ENDIF

But OleAuto uses this code from __OleCreateObject():

      ppDisp = ( IDispatch** ) hb_gcAlloc( sizeof( IDispatch* ),
hb_ole_destructor );
      *ppDisp = pDisp;
      hb_retptrGC( ppDisp );

which it is different from  the pointer created by win_N2P().

So the call to hb_oleParam( -1 ) fails as the pointer containt is different.

I may be missing something. I appreciate your comments, thanks

Antonio Linares
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to