Can't understand from C code what parameters are needfuls for this function . And what is the best way to run prgs as scripts ?
How about that : __HrbRun( hb_compileBuf( memoread( cDef_kl + cPrg + ".prg" ) ) ) ?
Another question - how to see what errors of source are in scripting prg ? I tried something like that :
- Code: Select all Expand view RUN
TRY
__HrbRun( hb_compileBuf( memoread( cDef_kl + cPrg + ".prg" ) ) )
CATCH e
MsgInfo( "error ...)
return( NIL )
END
How to do own error analyzer ?
3-t question - can I get an return of scripting prg object ? In most situations it's needfuls to know windows handle number . So I'm doing in prg's script - define window ... activate window... and then return( oWnd:hWnd ) . But I don't know how get if from __HrbRun( ) . It's possible ?
Many thanks in advance ! With best regards !