Re: Wrapper Help

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu