passing derived-CDialog object member function as callback? 
Author Message
 passing derived-CDialog object member function as callback?

I want to pass a member function of my Dialog box class object into a
lengthy DLL method call,
so it can periodically notify the dialog box to update its status info...

can this be done (without undue complexity), or is there a preferable
approach??

Any tips from those of you who may have done this before would be
appreciated.
Thanks!

-Colin Reinhardt



Fri, 22 Mar 2002 03:00:00 GMT  
 passing derived-CDialog object member function as callback?
You could do it in any of the following ways:

1. Use timer and query the info on each timer call.
2. Use a thread which holds on to the information you want to display.
3. Use OnUpdateCommandUI with WM_KICKIDLE. This is same as 1 except you
would not need timers.

--
Ajay Kalra

Microsoft Visual C++  MVP

Quote:

>I want to pass a member function of my Dialog box class object into a
>lengthy DLL method call,
>so it can periodically notify the dialog box to update its status info...

>can this be done (without undue complexity), or is there a preferable
>approach??

>Any tips from those of you who may have done this before would be
>appreciated.
>Thanks!

>-Colin Reinhardt



Fri, 22 Mar 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Passing C++ Class Member Function to as a C Callback Function Parameter

2. Passing CDialog-derived object to DLL?

3. Getting pointer to non-static member function from C callback function

4. Callback functions as member functions

5. Calling C++ member function through C function callback

6. class member function as callback function

7. How to use member function of a C++ class as a callback function

8. Derived CListBox for CDialog member?

9. Using Non-Static Callback Functions as member Functions VC5.0

10. Passing "callback" function to a function

11. Passing a Pointer of an Object to its member Object

12. passing a managed object refrence to win32 callback

 

 
Powered by phpBB® Forum Software