The following sample returns 64 for any number of parameter passed to TEST() function:
FUNCTION MAIN() ? TEST( 1 ) INKEY( 0 ) RETURN NIL #pragma BEGINDUMP #include "windows.h" #include "hbapi.h" HB_FUNC( TEST ) { hb_retnl( hb_pcount() ); } #pragma ENDDUMP EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG Music page: http://www.emagsoftware.it/emgmusic The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tbosg ------------------------------------------------------------------------------ _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers