Jump to content
  • Advertisement


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

Rob Lemmens

Windowproc in a class

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

Can i define a window procedure in a class? If so how would i do this. i tried to but i always get errors. I really need to do this because i need to use members of the class in the windowprocedure. Somebody please help me!

Share this post

Link to post
Share on other sites
you can''t do it.
the one and only reason is because CLASS methods get another parameter which is THIS ofcourse
and then your CALLBACK method/function in this case is not a real CALLBACK functino anymore

that''s the reason
to bypass it make it a static callback method or something

i just put them out of the class, it just came to my mind the static trick, check it out

good luck
share the results

Its possible, do a search for yourself. I think Oluseyi has written an article on it which should be posted in the next few weeks.

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!