error C2275 illegal use of this type as an expression
System.h
static class CSystem
{
public:
static int GetNum(int i);
CSystem();
virtual ~CSystem();
};
System.cpp
int CSystem::GetNum(int i)
{
return i;
}
Exercise.cpp
void CExerciseDlg::OnBUTTON_GetPID()
{
int i = CSystem.GetNum(5);
}
提示:
error C2275: 'CSystem' : illegal use of this type as an expression