Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Rate my code

Newbie Spellweaver
Joined
Jul 29, 2013
Messages
31
Reaction score
1
Hello, I'm programmimg a c++ directx 9 gui, and have much error, and I do not know where I'm going wrong(pointer, ...).

Source code ( only source ) for build in vs 2010


you can show me how to better to make this ?
 
Last edited:
Junior Spellweaver
Joined
Oct 27, 2008
Messages
165
Reaction score
89
First thing you are using too many pointers(use pointrers ic necessary),

I usually don't use getmessage i prefer using peekmessage because with the getmessage your code is moved into the window process function and less into outside of it(you cant do some good framerate with).

You can add the conttoll functionality that is in the wondow process function to the controll lass under a certain metbod that will take as parameter the MSG object.
Since you have the list of the controls just add a method in the in Render to prlcess inputs.
 
Watching from above
Legend
Joined
Apr 9, 2004
Messages
3,828
Reaction score
752
First thing you are using too many pointers(use pointrers ic necessary),

I usually don't use getmessage i prefer using peekmessage because with the getmessage your code is moved into the window process function and less into outside of it(you cant do some good framerate with).

You can add the conttoll functionality that is in the wondow process function to the controll lass under a certain metbod that will take as parameter the MSG object.
Since you have the list of the controls just add a method in the in Render to prlcess inputs.
Dude try reading through your own posts just once.. the number of typos is unacceptable!
 
Back
Top