[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: property based C++ API with Lunar?
- From: Michael Bauroth <Michael.Bauroth@...>
- Date: Fri, 14 Nov 2008 15:54:09 +0100
Hi,
I have implemented your solution, but had to change two lines because of
a compiler error (VS2008). What do you mean?
was ...
#define LCB_ADD_SET(fieldname) { #fieldname , set_##fieldname }
#define LCB_ADD_GET(fieldname) { #fieldname , get_##fieldname }
changed to ...
#define LCB_ADD_SET(fieldname) { #fieldname , &set_##fieldname }
#define LCB_ADD_GET(fieldname) { #fieldname , &get_##fieldname }
Just another question. What can I change to use the same solution as
well for methods with more than one parameter, e.g. instead of
btn:SetPosition( 1, 1 ) I want to use btn.Position = 1, 1?
Best Regards
Micha