home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12440 < prev    next >
Encoding:
Text File  |  1992-08-17  |  990 b   |  23 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!psgrain!ee.und.ac.za!ford.ee.up.ac.za!rkw-risc!hons
  3. From: hons@rkw-risc.cs.up.ac.za (Honneurs Studente)
  4. Subject: pointer to member functions question
  5. Sender: news@ford.ee.up.ac.za (NetNews Daemon)
  6. Message-ID: <hons.714103910@rkw-risc>
  7. Date: 18 Aug 92 02:11:50 GMT
  8. Organization: University of Pretoria, South Africa
  9. Lines: 12
  10.  
  11.  
  12. Is it possible to cast a pointer to a member function for a specific object 
  13. to a function pointer. The reason I ask is that sometimes operating systems expect function pointers as event handlers. Let us say for example that an 
  14. object sets a timer and wants to give the system routine that sets the timer a 
  15. pointer to a function to call when the timer expires. It would be nice if that
  16. function pointer could in fact be a member function of the class of which
  17. the object in question is an instance. I'm using a GLOCKENSPIEL C++ on VMS.
  18. If anyone can help please reply by e-mail to 
  19.  
  20.       9180486@cs.up.ac.za
  21.  
  22. Thanx
  23.