一个入门的VC问题
在MFC单文档应用程序Schedule中:
在ScheduleDoc.h中定义了结构
struct ScheduleItem(在类CScheduleDoc之前定义)
然后在CScheduleDoc类的Serialize()中使用
pSI = (struct ScheduleItme *)(m_ScheduleList.GetAt(pos));
系统却提示
error C2440: '=' : cannot convert from 'struct CScheduleDoc::Serialize::ScheduleItme *' to 'struct ScheduleItem *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
为什么呢?