home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!psgrain!ee.und.ac.za!ford.ee.up.ac.za!rkw-risc!hons
- From: hons@rkw-risc.cs.up.ac.za (Honneurs Studente)
- Subject: pointer to member functions question
- Sender: news@ford.ee.up.ac.za (NetNews Daemon)
- Message-ID: <hons.714103910@rkw-risc>
- Date: 18 Aug 92 02:11:50 GMT
- Organization: University of Pretoria, South Africa
- Lines: 12
-
-
- Is it possible to cast a pointer to a member function for a specific object
- 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
- object sets a timer and wants to give the system routine that sets the timer a
- pointer to a function to call when the timer expires. It would be nice if that
- function pointer could in fact be a member function of the class of which
- the object in question is an instance. I'm using a GLOCKENSPIEL C++ on VMS.
- If anyone can help please reply by e-mail to
-
- 9180486@cs.up.ac.za
-
- Thanx
-