On 2/15/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > On 2/14/07, John Labenski <[EMAIL PROTECTED]> wrote: > > There's two problems, the first is that dcs is a "void*" data which > > genwxbind.lua is treating as the userdata pointer which is not the > > data itself. Is wxSerialPort_DCS a struct? > > Yes it is a struct. Do you have syntax to handle struct's or will > %class do a decent job?
There is a %struct tag, but %class will probably also work. > > Maybe you should replace the binding line with > > > > int Open(const char* devname, wxSerialPort_DCS* dcs) > > > > or override the generated binding with > > > > void * dcs = (void *)wxlState.GetUserDataType(3, > > s_wxluatag_wxSerialPort_DCS); > > > > secondly, "const char*" is not correctly interpreted in genwxbind.lua > > (fixed in cvs) the binding line should be > > > > const char * devname = (const char *)wxlState.GetStringType(2); > > FYI, the nightly snapshots are not working since Feb. 11, 2007. I can > only get the source this way because of a corporate firewall. Has > there been any talk of switching to Subversion. It is so much easier > to use and works better behind firewalls and such? Humm, I also cannot ssh into the sourceforge server. Hopefully this is a temporary problem. Regards, John Labenski ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users