Talk:Coded keypad: Difference between revisions
(→On 2007: new section) |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== | == error C2039: 'CheckDeclareClass' : is not a member of 'vgui::Frame' (vgui_keypad.cpp) == | ||
BEFORE YOU READ OR TRY TO DO WHAT I'VE DONE, ATTEMPT AT YOUR OWN RISK!!! | |||
I've been getting this error quite a bit whenever I attempt to implement this into my mod. Recently I've found a solution to this very problem. In "networkvar.h", the header file the error points to, remove the following text: | |||
template <typename T> | |||
inline int CheckDeclareClass_Access( T *, const char *pShouldBe ) | |||
{ | |||
return T::CheckDeclareClass( pShouldBe ); | |||
} | |||
I'm not aware of any long-term implications this could have on the rest of the code, but I've compiled it and it seemed to work fine. | |||
^ I tried this on HL2MP 2013 and it crashed on startup. I assume it will work on singleplayer? -willgames | |||
^ In vgui_gamepad.h change DECLARE_CLASS into DECLARE_CLASS_SIMPLE. It will compile now --[[User:Bssth|bssth]] ([[User talk:Bssth|talk]]) 21:10, 20 July 2024 (PDT) |
Latest revision as of 21:10, 20 July 2024
error C2039: 'CheckDeclareClass' : is not a member of 'vgui::Frame' (vgui_keypad.cpp)
BEFORE YOU READ OR TRY TO DO WHAT I'VE DONE, ATTEMPT AT YOUR OWN RISK!!!
I've been getting this error quite a bit whenever I attempt to implement this into my mod. Recently I've found a solution to this very problem. In "networkvar.h", the header file the error points to, remove the following text:
template <typename T> inline int CheckDeclareClass_Access( T *, const char *pShouldBe ) { return T::CheckDeclareClass( pShouldBe ); }
I'm not aware of any long-term implications this could have on the rest of the code, but I've compiled it and it seemed to work fine.
^ I tried this on HL2MP 2013 and it crashed on startup. I assume it will work on singleplayer? -willgames
^ In vgui_gamepad.h change DECLARE_CLASS into DECLARE_CLASS_SIMPLE. It will compile now --bssth (talk) 21:10, 20 July 2024 (PDT)