Jump to content
  • Advertisement

Archived

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

kroiz

Func Ptr Impotence

This topic is 6579 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 people i''m tring to make a timing class that is a class that recieve a pointer to a function and a time interval.then the object of that timing class will call the function that was assigned to him, every interval. this is part of what i made: /* Constructor that set the interval and the function being pointed to */ CTiming::CTiming( void (* fPtr)(void) ,int inter) { interval = inter; funcPtr = fPtr; } /* Process call the function that was set to the pointer every interval.*/ void CTiming:rocess(void) { if(Time_Passed()) funcPtr(); } so far so good with compilation but when i create an object: CTiming Cycle_Frames( Next_Frame ,100); it gives the following error: error C2061: syntax error : identifier ''Next_Frame'' does anybody know what i''m doing wrong? tnx .

Share this post


Link to post
Share on other sites
Advertisement

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