Re: IUP 3.31 Wrapper
- Posted by petelomax Oct 28, 2023
- 1749 views
It is not wise to have IUP.e as well as iup.e ! - I ignored the first one.
(Using Phix) I had to kill IupImageLibOpen in iup.e since that's not in the iup.dll you provided.
I also had to hack IupHbox since that must always be null terminated.
(Phix/pGUI only ever uses IupHboxv, which is for us non-C lot after all)
-- xIupHbox = define_c_func(iup,"+IupHbox",{C_POINTER,C_INT},C_POINTER), xIupHbox = define_c_func(iup,"+IupHbox",{C_POINTER,C_PTR,C_PTR},C_POINTER), -- return c_func(xIupHbox,{child,x}) return c_func(xIupHbox,{child,x,NULL})
Renamed IupTextConvertLineColToPos as IupTextConvertLinColToPos
Made the callback "public function btn_count_cb(atom self)"
Also made it atom cb = call_back({'+',id}) [that may only be a Phix thing]
Then it all worked.
PS: note that I am not using/testing std/ffi.e at all.

