On 6/20/06, Steve Kieu <[EMAIL PROTECTED]> wrote:
>
> Hi all, I am trying to bind wxSqlite3 to lua and do not know how to use
> exception in wxlua. wxSqlite3 has an exception class and in c++ the try
> catch exception. How can I use it in wxlua? Something translated like
>
> local db=wxSqlite3DB()
> db:Open(path)
> x,y=db:ExecuteQuery(sql)
>
> -- if x =nil then y contains error msg.
>
> Can I I do it in wxlua binding r I have to manually code it in c++ using lua
> c api?

The wxLua binding generator cannot return multiple values. These have
to be coded by hand in your override file.

Secondly, wxLua also doesn't deal with exceptions and neither does wxWidgets.

Regards,
    John Labenski


_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to