Jump to content
  • Advertisement

Archived

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

Programmer16

Begin() not a method of ID3DXFont? Plus some others...

This topic is 5332 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

I''m trying to share some of my code with someone else, but when he compiles it, he''s getting some rediculous errors: C:\Documents and Settings\Me\My Documents\egate2\egate_font.cpp(25) : error C2664: ''D3DXCreateFontIndirectA'' : cannot convert parameter 2 from ''struct tagLOGFONTA *'' to ''const struct _D3DXFONT_DESCA *'' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast DrawText does not take 5 parameters. Begin not a member of ID3DXFont. End not a member of ID3DXFont. Begin does not take 0 parameters. He has the 2003 summer update DirectX 9 and I just downloaded mine in March. Can anybody help us? Thanks! Thanks, Donny, Dragonfire Games =========================================================== using DirectX9/C++(MSVC++ 6 Pro. Ed.) ===========================================================

Share this post


Link to post
Share on other sites
Advertisement
You can''t be using the same version of the SDK. They changed the parameters between the versions, bad Microsoft bad. You may have downloaded the summer update but you can''t be using it. Check the order of your includes and make sure that the summer update path is before the other one. They removed begin and end from ID3DXFont and draw requires 6 parameters.

Share this post


Link to post
Share on other sites
D3DX is EXPLICITLY a utility library that is linked statically with your application, and which they change the API for with each SDK release. It''s documented to change, you know it, you choose to use it.

Note that even if you download an SDK, the default include paths may find some other version of the header/libraries, depending on all the different search paths in both the IDE, the environment, and the project settings. That''s probably your problem.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!