Jump to content
  • Advertisement
Sign in to follow this  
j0hn

GetTextExtentPoint32 error with DC

This topic is 4886 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 all, i can't have this snipped working right. It seems that font->Getdc() returns an invalid handle. I have also noticed that in vc 7 when I type "font->" i don't have Getdc() in the helper list... since I have the october release of Directx. LPSIZE CHudStaticText::GetStringSize() { LPSIZE size = 0; GetTextExtentPoint32(font->Getdc(), content.c_str(), content.size(), size); return size; } Where font is a d3dfont content is a std::string [Edited by - j0hn on January 7, 2005 10:14:44 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!