On 1/30/07, John Labenski <[EMAIL PROTECTED]> wrote: > On 1/30/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > On 1/30/07, John Labenski <[EMAIL PROTECTED]> wrote: > > > wxCTB is the only one I know of. I have read on wx-users that it works > > > and people like it if that helps. I have not seen it myself, but I > > > assume that wrapping it should be pretty straight forward. > > > > How do I bind wxCTB:wxSerialPort() to wxLua? I am new to wxLua and I > > feel like that would be beyond my skills right now. I use wxWidgets on > > a daily basis, but Lua I am just starting with. Any article/how-to or > > help would be greatly appreciated. I think I only want the serial port > > class not the whole library. Should I make it a wxLua module? Is that > > equivalent to binding? > > The bindings are easy to make, read this > http://wxlua.sourceforge.net/documentation.php > http://wxlua.sourceforge.net/docs/binding.html > > Take a look at any of the bindings > http://wxlua.cvs.sourceforge.net/wxlua/wxLua/bindings/wxwidgets/appframe.i?view=markup > > Copy the header you want to bind to *.i and then just clean them up a > little. See also the apps/wxluacan sample which has it's own bindings. > > Generate the bindings using genwxbind.lua, using your "rules" file > (just copy an existing one and change the names of a few things) and > then create the output CPP files. See genwxbind.bat for the command > line syntax of genwxbind.lua. > > Once you've got your binding files, compile them with your project (or > make your own lib) and link to it. I suppose that you could make these > modules loadable by 'require', but that would take some doing.
I am going to attempt to create a binding for wxCTB's wxSerialPort and I have a question about the .i file. If the header file has items in it, but the only thing I care about is an enumeration do I delete everything other than the items I care about? -- Regards, Ryan RJP Computing ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users