Re: No matching overload found
James Porter <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Phlox Icon wrote: > gEntList:FindEntityByName( NULL, szName, NULL, NULL, NULL, NULL ) Pointers don't exist in Lua (at least not the way you're doing it), and this wouldn't work in C++ either (try defining "int null = 0;" and passing that to your method - it'll fail). It would work if you bound NULL to be a CBaseEntity* via Luabind. > This is really confusing because the first parameter in the message's > function is CGlobalEntityList&. This was not what I defined with LuaBind > earlier and no such function exists to match this definition. Is my > binding code wrong somewhere? Thanks in advance. You may want to look into C++ calling conventions, since at the implementation level, most compilers will pass an object as the first parameter to its class's methods. - Jim ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july