Solved

Object access in Timerproc callback function

Posted on 1998-04-21
1
314 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xyBalance chalenge 58 88
sameEnds challenge 3 134
FizzBuzz challenge 9 76
noX challenge 17 91
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now