Jump to content
  • Advertisement


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


Changes to SelectObject Function in VC++6

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

According to my programming books the Select Object function is supposed to return an HGDIOBJ struct (the old object) so that it could be set back later. However, according to VC++6 (specifically the little tooltips that comes up when I move the mouse over the function call in my code) the SelectObject function returns a "void* __cdcel" or something like that. Setting an explicit type on the pen/brush doesn't help. Is there another function to get the old object before changing it? or is it safe to just set an object to NULL when shutting down my program?


Share this post

Link to post
Share on other sites
I'm not positive, but I _believe_ that it is ok to set the object to NULL when quitting the app.

If I am wrong, then hopefully someone will correct me.


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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!