Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-20 Thread John Labenski
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? >

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-15 Thread Ryan Pusztai
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

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-14 Thread John Labenski
On 2/13/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > Interface file: > > %class %delete %noclassinfo %encapsulate wxSerialPort, wxSerialPort_x > > wxSerialPort() > > > > // Serial port initilization > > ... > > int Open(const char* devname, void* dcs) > >

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-13 Thread Ryan Pusztai
On 2/7/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > On 2/7/07, John Labenski <[EMAIL PROTECTED]> wrote: > > The easiest thing to do is to merely add the *.cpp files to your > > project (or apps/wxlua) and then recompile. I suppose you could build > > your own lib, like wxbindstc for example and th

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-07 Thread Ryan Pusztai
On 2/7/07, John Labenski <[EMAIL PROTECTED]> wrote: > The easiest thing to do is to merely add the *.cpp files to your > project (or apps/wxlua) and then recompile. I suppose you could build > your own lib, like wxbindstc for example and then link to that, but > adding the cpp files is much easier.

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-07 Thread John Labenski
On 2/7/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > I now have the library building. I now need to add it to the wxLua > solution and the I am now sure what I need to do to include this in a > full compiled version of wxLua. The easiest thing to do is to merely add the *.cpp files to your proje

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-07 Thread Ryan Pusztai
On 2/7/07, John Labenski <[EMAIL PROTECTED]> wrote: > I think the above should work. The easiest way to get the code above > is to change your timer function in the *.i file to > "timer(unsigned int msec, int exitflag)" > and then run the generator. You now have code that is close to what you want.

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-07 Thread John Labenski
FORGET the last message, I sent it by accident when I pressed tab and then enter. On 2/7/07, John Labenski <[EMAIL PROTECTED]> wrote: > On 2/6/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > On 2/6/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > > Well I am still a bit lost. > > > > > > First, her

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-07 Thread John Labenski
On 2/6/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > On 2/6/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > Well I am still a bit lost. > > > > First, here is the documentation for the function I want to wrap. > > /*! > > The constructor creates an timer object with the given > > proper

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-06 Thread Ryan Pusztai
On 2/6/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > Well I am still a bit lost. > > First, here is the documentation for the function I want to wrap. > /*! > The constructor creates an timer object with the given > properties. The timer at this moment is not started. This > will

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-06 Thread Ryan Pusztai
On 2/5/07, John Labenski <[EMAIL PROTECTED]> wrote: > On 2/5/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am making good progress towards adding wxSerialPort to wxLua. I > > think I am down to the last problem. I have a function that takes a > > callback function as a parameter and

Re: [wxlua-users] Converting a header file definition to the interface format

2007-02-05 Thread John Labenski
On 2/5/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > Hi, > > I am making good progress towards adding wxSerialPort to wxLua. I > think I am down to the last problem. I have a function that takes a > callback function as a parameter and I don't know what I can use in > the interface file (.i). I hav

[wxlua-users] Converting a header file definition to the interface format

2007-02-05 Thread Ryan Pusztai
Hi, I am making good progress towards adding wxSerialPort to wxLua. I think I am down to the last problem. I have a function that takes a callback function as a parameter and I don't know what I can use in the interface file (.i). I have tried to use wxEventHandler as the parameter and it of coars