Jump to content
  • Advertisement

Archived

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

BlueChip

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

This topic is 5584 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
I think you meant that to be:

return (m_pPosition->pElement->GetID3DXMesh());

You were trying to return a function rather than the result of a function call.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!