Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Object access in Timerproc callback function

Posted on 1998-04-21
1
Medium Priority
?
322 Views
Last Modified: 2013-11-20
I want to access the object where my timerproc callback function is in from within the timerproc callback function. Since this callback function has to be static this is not possible although it belongs to that class. What can I do ?
0
Comment
Question by:MarcoHelmers
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1301059
declare a static variable of your object pointer type and intialize it somewhere before you are going to use it. Now you can access you object from global callback timer procedure
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question