Archived

This topic is now archived and is closed to further replies.

BlueChip

[C++ ] an error that I don't understand

Recommended Posts

Hi... I''ll be very fast... I''ve a class MyMesh, and in this class there is the method ID3DXMesh* GetID3DXMesh(); This works fine.... I''ve a class CExtra, too ..... with method ID3DXMesh* CExtra::GetMesh() { return (m_pPosition->pElement->GetID3DXMesh); } this "m_pPosition->pElement" give me a *MyMesh and also it works... but "m_pPosition->pElement->GetID3DXMesh" tell me cannot convert from ''struct ID3DXMesh *(__thiscall MyMesh::*)(void)'' to ''struct ID3DXMesh *'' Why the method give me a ID3DXMesh *(__thiscall MyMesh::*)(void) if GetID3DXMesh give me ID3DXMesh*?? thank very much =) byezzzzzzzzzzzzzzzzzzzzzz

Share this post


Link to post
Share on other sites