| 发表于:2008-01-04 23:27:084楼 得分:0 |
为什么 我给类添加static cstring 变量有问题啊 帮我看下这是什么原因吗 bool smemory::onwizardfinish() { // todo: add your specialized code here and/or call the base class updatedata(); cstring a = zj.m_scpu.m_coid;//问题在这zj是另外一个类,m_scpu是它的对象. if("" == m_meoid) { messagebox("请选择需要的内存","error",mb_ok); return 0; } else { return 1; } return cpropertypage::onwizardfinish(); } rror c2275: 'zj' : illegal use of this type as an expression d:\copy2\zj.h(15) : see declaration of 'zj' d:\copy2\\smemory.cpp(88) : error c2228: left of '.m_coid' must have class/struct/union type error EXECuting cl.exe. 好象我在头文件中直接定义cstring 变量前面加static有问题,能告诉我是为什么吗?? | | |
|