when i compile my code,i get this error
error C2039: 'Import3dmax3DS' : is not a member of 'C3dWorld'
see declaration of 'C3dWorld'
but i have define 'Import3dmax3DS' in 'C3dWorld'
which situation does 'error C2039' happen
when i compile my code,i get this error
error C2039: 'Import3dmax3DS' : is not a member of 'C3dWorld'
see declaration of 'C3dWorld'
but i have define 'Import3dmax3DS' in 'C3dWorld'
which situation does 'error C2039' happen
which situation does'error C2039' happen?
azuomar
Itai R
it went wrong here
......
C3dObject* pObject = m_pWorld->Import3dmax3DS(szPath, FALSE);
......
and i declare it here
class AFX_EXT_CLASS C3dWorld : public CObject
{
DECLARE_DYNAMIC(C3dWorld);
......
C3dObject* Import3dmax3DS(LPCSTR lpszFileName, BOOL bAddToList=TRUE);
......
t
aviatordave
CharlesGDL
YESChandana
that's not the order
class AFX_EXT_CLASS C3dWorld : public CObject
{
DECLARE_DYNAMIC(C3dWorld);
......
C3dObject* Import3dmax3DS(LPCSTR lpszFileName, BOOL bAddToList=TRUE);
......
}
C3dObject* C3dWorld::Import3dmax3DS(LPCSTR lpszFileName, BOOL bAddToList)
{
......
}
C3dObject* pObject = m_pWorld->Import3dmax3DS(szPath, FALSE);
Rassol
Nachiket
after rebuild all(it takes a lot of times),it works
thank you all