You can call "MYCLASS" from C code, and return value is a new object.
Atte. Vic On Wed, 8 Dec 2010, Marcos Gambeta wrote: > Hi all, > > I have the following "puzzle" to solve: > > 1. I have a class: > > prog1.prg > > #include "hbclass.ch" > CLASS myClass > DATA value > METHOD new > END CLASS > METHOD new () CLASS myClass > ::value := 1 > RETURN self > > prog2.c > > #include "hbapi.c" > > HB_FUNC( MYCFUNCTION ) > { > // some c code > // here i need to create a instance of the class myClass and return > the object > } > > The code above is only to illustrate the problem. The real code is more > complex. > > Any help will be apreciated. > > > Regards, > Marcos Antonio Gambeta > > > ------------------------------------------------------------------------------ > This SF Dev2Dev email is sponsored by: > > WikiLeaks The End of the Free Internet > http://p.sf.net/sfu/therealnews-com > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > ------------------------------------------------------------------------------ This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers