raw pointer in lua
"鸡肋" <[email protected]> Mon, 9 Jan 2012 20:04:25 +0800
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
code(C++):
luabind::object_cast<bool>(m_luaObject["SetAttribute"](m_luaObject, this, strName, strValue));
m_luaObject is luabind::object type. I call it's SetAttribute method,and pass the second parameter "this" pointer. I had register the class of "this" in the lua.
Now, I want to call some method through "this" pointer in the lua. How can I do it?
code(LUA):
function TextButton:SetAttribute(object, name, value)
object.InternalFindUIObject("caption") -- "this" pointer, how can I user here?
end
Thanks!
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user