I've tried this following code but nothing appear in my screen :
Code: Select all
clauses
onTest4(_Source, _MenuTag):-
% DW = gui_native::getDesktopWindow(),
NULLWIN=uncheckedConvert(vpiDomains::windowHandle,0),
DW = uncheckedConvert(hwnd,vpi::winGetAttrVal(NULLWIN,attr_screen_window)),
DC = gui_native::getDC(DW),
R = gui_native::drawText(DC,"Hello world !",-1,rct(500,500,900,700),gui_native::dt_left),
stdio::write("R = ",R,"\n") % here, R = 16 => regarding MSDN, it'seems good.
.