Thanks, I get
CRuntimeClass* pRuntimeClass = RUNTIME_CLASS( CNew ); // error C2065: 'classCNew': undeclared identifier
// error C2653: 'CNew': No class or namespace
CNew* pNew = (CNew*)pRuntimeClass->Crea
Any idea?
Main Topics
Browse All Topics





by: jkrPosted on 2006-06-09 at 15:03:25ID: 16874272
Since you're using DECLARE_DYNCREATE(CNew),
teObject() ;
library/en -us/vccore 98/HTML/ _c ore_cobjec t_class.3a _.dynamic_ object_cre ation.asp ("Dynamic Object Creation")
try
CRuntimeClass* pRuntimeClass = RUNTIME_CLASS( CNew );
CNew* pNew = (CNew*)pRuntimeClass->Crea
bool boolNew = pNew->detetcNew();
See also http://msdn.microsoft.com/