That works great.
Thanks,
Darwin
> Date: Sat, 17 Nov 2007 15:22:15 -0500
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; [email protected]
> Subject: Re: [wxlua-users] Problem with enumerations in C++ namespaces
>
All done, the current CVS should work. You have to regenerate your
bindings to use it.
The added benefit is that wxLua is now installed like any other
library and you can call "require("wx")" even if you're not using it
as a shared library.
Regards,
John
On Nov 13, 2007 3:34 AM, Darwin Slatt
>> I also used the following value for hook_cpp_binding_header_includes:
>> "#include \"wxbind/include/wxbind.h\"\nnamespace nsa {}\nusing namespace
>> nsa;"
>
> Good, I hoped it was this simple. Just wondering, why do you need
> "namespace nsa {}"? Is it because you're not #including a header
On Nov 12, 2007 5:35 PM, Darwin Slattery <[EMAIL PROTECTED]> wrote:
>
> Thanks for your reply.
>
> The approach worked fine but I'd just like to clarify one point. I found that
> using a hook_lua_namespace of 'wxluanstest.nsa' created a table with this
> name in adddition to the 'wxluanstest' tab
binding_header_includes:
"#include \"wxbind/include/wxbind.h\"\nnamespace nsa {}\nusing namespace nsa;"
Thanks again for your help,
Darwin
> Date: Wed, 7 Nov 2007 19:01:32 -0500
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; wxlu
On 11/6/07, Darwin Slattery <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have been having some difficulty with accessing enumerations inside C++
> namespaces. I have attached a simple test program which binds C++ code
> consisting of one namespace 'nsa', one class 'Person', and three enumerations
Apologies for the second post - just fixing a small problem in the file that I
originally attached.
Regards,
Darwin Slattery
_
100’s of Music vouchers to be won with MSN Music
https://www.musicmashup.co.uk
wxluanstest.tar.gz
Descr
Hello,
I have been having some difficulty with accessing enumerations inside C++
namespaces. I have attached a simple test program which binds C++ code
consisting of one namespace 'nsa', one class 'Person', and three enumerations
'Country', 'Job', and 'Title', each at different scopes. The cla