Jump to content
  • Advertisement

Archived

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

Calypso

lamothe book

This topic is 6481 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''ve started the Lamothe book Tricks of the Windows Game Programming Gurus.. The first breakout example doesn''t seem to want to compile. I get the error that "HDC hdc" is an unreferenced local variable and so was PAINTSTRUCT ps. What''s going on and how can I fix this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
an unreferenced local variable is where a variable has been declared but not used. it should(although not necessarily) be a warning not an error and if so you can ignore and compile/build/run iy without a problem. If you wanna get rid of the warning either delete the lines with the paintstruct and HDC on or put =0 or =NULL after each one. Hope ive helped

Just my thoughts take them as you will.

"People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face

Edited by - Zeke on February 15, 2001 10:35:16 PM

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!