Re: Wrapper Help

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

this one? http://irrlicht.sourceforge.net/?page_id=45

is it c or c++? usually what you have to do with c++ is create a c shim that talks to the lib and you wrap the c shim from euphoria. you might be dealing with some unicode and codepage issues too. like wrapping isn't hard enough, there ought to be a law

Yes I am using that C wrapper as the basis for the Euphoria wrapper.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu