Re: Wrapper Help
- Posted by Icy_Viking May 19, 2017
- 1314 views
ne1uno said...
guessing change public procedure irrIrrlichtDeviceSetWindowCaption(atom strw) to public procedure irrIrrlichtDeviceSetWindowCaption(object strw)
OK I got it to work. The C wrapper has a lot of weird typos and whatnot. I had to do this.
public constant xirrIrrlichtDeviceSetWindowsCaption = define_c_proc(irr,"irrIrrlichtDeviceSetWindowsCaption",{C_POINTER}) public procedure irrIrrlichtDeviceSetWindowsCaption(sequence strw) atom str = allocate_string(strw,1) c_proc(xirrIrrlichtDeviceSetWindowsCaption,{str}) end procedure
there is an 's' after Window. However when running the program I get ?????dltFont in the title bar. Not sure if it is handling the string correctly.