Re: Comments on ORAC
- Posted by Mike <vulcan at ?in.co.?z> Nov 07, 2007
- 659 views
Pete Lomax wrote: > > > Indirect routine calls: > > If we could do: xDeleteObject(hWnd) well, that would be just great. If > > someone > > could please tell me how to detect the difference between an integer that is > > the result > > of a dll link and an integer that is a routine_id > > CChris might know whether it is possible to merge the routine_id and c_func > tables in the backend or not. > > Alternatively, why not just add say #30000000 to define_c_proc results, > #20000000 > to define_c_func, and #10000000 to routine_ids of procedures? > > Hence if and_bits(n,#20000000) then it is a C routine else an Eu one, > and if and_bits(n,#10000000) then it is a procedure else a function, > and mask these things with #0FFFFFFF before use. > > Regards, > Pete I'm part way through enhancing Orac to detect these cases. It actually doesn't seem to be all that difficult now. It'll work for Arwen, wxEuphoria or any library that assigns the c_func/proc id directly to a constant. It probably won't work for win32lib. Oh well.. Mike