Talk:Coded keypad: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎On 2007: new section)
 
Line 4: Line 4:


Cheers.
Cheers.
== 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.

Revision as of 19:59, 12 April 2020

On 2007

Could someone give me a ring on Skype - c.sharp2012, or e-mail - callum.sharp.mls@gmail.com if they know how to route this code for 2007?

Cheers.

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.