SourceForge logo
SourceForge logo
Menu

wxlua-users

From: Ryan P. <rpu...@gm...> - 2007年01月30日 19:07:56
Hi,
Is there a serial port lua module or serial port support for wxLua?
I am in need of such a library and can't seem to find anything other
then the wxCTB library and that is much bigger than I want or need.
Any help would be greatly appreciated.
-- 
Regards,
Ryan
RJP Computing
From: John L. <jla...@gm...> - 2007年01月30日 19:16:29
On 1/30/07, Ryan Pusztai <rpu...@gm...> wrote:
> Hi,
>
> Is there a serial port lua module or serial port support for wxLua?
>
> I am in need of such a library and can't seem to find anything other
> then the wxCTB library and that is much bigger than I want or need.
> Any help would be greatly appreciated.
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.
Regards,
 John Labenski
From: Hakki D. <dog...@tr...> - 2007年01月30日 19:45:34
Hi,
Ryan Pusztai wrote:
> Hi,
> 
> Is there a serial port lua module or serial port support for wxLua?
> 
> I am in need of such a library and can't seem to find anything other
> then the wxCTB library and that is much bigger than I want or need.
> Any help would be greatly appreciated.
(I saw your message in lua list, but didn't reply
it with "use wxCTB" :) )
I used/using it in automation software.
It works very well!
But I don't have a lua binding for it :(
--
Regards,
Hakki Dogusan
From: Ryan P. <rpu...@gm...> - 2007年01月30日 20:14:44
On 1/30/07, Hakki Dogusan <dog...@tr...> wrote:
> (I saw your message in lua list, but didn't reply
> it with "use wxCTB" :) )
Yeah I have not got any responses to that. I saw a really nice serial
port library as part of LuaX, but it doesn't use the "require()"
mechanism and I don't know how to change that. Or even if it would be
a complete rewrite.
> I used/using it in automation software.
> It works very well!
Good to know. Thanks.
> But I don't have a lua binding for it :(
Too bad because I have know idea how to do that.
-- 
Regards,
Ryan
RJP Computing
From: Ryan P. <rpu...@gm...> - 2007年01月30日 20:07:24
On 1/30/07, John Labenski <jla...@gm...> 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?
-- 
Regards,
Ryan
RJP Computing
From: John L. <jla...@gm...> - 2007年01月30日 21:06:51
On 1/30/07, Ryan Pusztai <rpu...@gm...> wrote:
> On 1/30/07, John Labenski <jla...@gm...> 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.
Regards,
 John Labenski
From: Ryan P. <rpu...@gm...> - 2007年01月31日 21:17:20
On 1/30/07, John Labenski <jla...@gm...> wrote:
> On 1/30/07, Ryan Pusztai <rpu...@gm...> wrote:
> > On 1/30/07, John Labenski <jla...@gm...> 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
From: John L. <jla...@gm...> - 2007年01月31日 23:04:13
On 1/31/07, Ryan Pusztai <rpu...@gm...> wrote:
>
> 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?
You need only put the things you want accessible to lua in the .i
file. In fact, if a class has a base class you need only wrap the
topmost class and add the useful base class functions to it. It would
only make sense to wrap the base class if two or more classes use it.
Hope this helps,
 John Labenski
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /