Passing extra parameters to wrapper function
Kristoffer Danielsson <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Consider this:
.def("log", WriteLog) // Not sufficient! Need one more parameter...
Inside lua:
log('Hello!')
Wrapper in C++:
void WriteLog(HWND hWndEdit, const char *text)
{
SetWindowText(hWndEdit, text); // hWndEdit provided when binding using ".def"?
}
Is this possible? Perhaps using raw()?
Thanks!
_________________________________________________________________
Kolla mailen när du är på språng - skaffa Hotmail i mobilen!
http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=SE-SE
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user