Jump to content
  • Advertisement
Sign in to follow this  

WinProc as class member?

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

Hey, all. I'm working on a 3-D engine and I would like to implement the render device as a class. This class will have it's own window handle and window procedure. However, Viz (VC++) does not allow me to put the window procedure in a class. Is it possible? I don't want to have the message handler as a global function because the potential for multiple classes to exist simultaneously exists. Also, I would like to have the WinProc access private class members, which can not happen unless the window procedure is a function of the interface.

Share this post

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

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