Thanks Przemek
Przemyslaw Czerpak-2 wrote: > > It's enough to add to olecore.c this function: > > PHB_ITEM hb_oleItemPut( PHB_ITEM pItem, IDispatch* pDisp ) > { > IDispatch** ppDisp; > > ppDisp = ( IDispatch** ) hb_gcAlloc( sizeof( IDispatch* ), > hb_ole_destructor ); > *ppDisp = pDisp; > > return hb_itemPutPtrGC( pItem, ppDisp ); > } > > It should be declared as public C function in hbwinole.h. > Then you use it to create Harbour GC pointer item and return it instead > of hb_retint(), f.e.: > > hb_itemReturnRelease( hb_oleItemPut( NULL, obj ) ); > I will try this approach. The problem at this moment is I cannot link my applns at all with new lib structure for various reasons. I cannot use either hbole.lib or hbwin.lib explicitly anymore. Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/Errors-with-11032-tp23521549p23574445.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour