class CPoint3D
{
public:
float m_X;
float m_Y;
float m_Z;
};
class CMesh
{
public:
CPhong* m_pForeColor;
CPhong* m_pBackColor;
CPhong* m_pForegroundColor;
int m_PositionCount;
CPoint3D** m_pPoints;
};
class CTriangleMesh : public CMesh
{
public:
int m_NormalCount;
CPoint3D** m_pNormals;
};
CTriangleMesh* mesh=new CTriangleMesh;
mesh->m_pPoints=new CPoint3D*[mesh->m_PositionCount];
mesh->m_pPoints[g]->m_X = 10;通过编译后运行时赋值时出错,显示:尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 VS20005.NET环境下。。
大虾帮忙啊。。谢谢了。。