我在NetWatcherViewerView.h 中定义了两个变量
public:
int m_iClientW, m_iClientH;
而我要在另一个文件MyStatic.cpp中用到它,所以在MyStatic.cpp前面我加上了一句:#include "NetWatcherViewerView.h"
运行之后,怎么还是说m_iClientW, m_iClientH
error C2065: 'm_iClientW' : undeclared identifier
error C2065: 'm_iClientH' : undeclared identifier
这是怎么回事呢?