编译信息:
1>GridFrame.cpp
1>e:\program files\rpince\gridframe.cpp(167) : error C2664: “AfxAssertValidObject”: 不能将参数 1 从“NMFOLDERTAB *”转换为“const CObject *”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换[/code]当下还剩一故障:



出错的代码段;

BOOL CGridFrame::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)  
{
NMFOLDERTAB* nmtab = (NMFOLDERTAB*)lParam;
ASSERT_VALID(nmtab);
CStkListView* pView = (CStkListView*)GetParent();
ASSERT_VALID(pView);
CPrinceStkDoc* pDoc =(CPrinceStkDoc*)pView->GetDocument();
ASSERT_VALID(pDoc);

错误的地方;
ASSERT_VALID(nmtab);