Jump to content
  • Advertisement

Archived

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

Rob Lemmens

Windowproc in a class

This topic is 5935 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
Advertisement
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

Arkon
[QSoft]
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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!