home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18864 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.2 KB

  1. Path: sparky!uunet!wupost!usc!news.cerf.net!nic.cerf.net!hlf
  2. From: hlf@nic.cerf.net (Howard Ferguson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Clarification of Callbacks in C++
  5. Date: 9 Jan 1993 00:21:00 GMT
  6. Organization: CERFnet Dial n' CERF Customer Group
  7. Lines: 21
  8. Sender: hlf@cerf.net
  9. Message-ID: <1il5pcINNblt@news.cerf.net>
  10. References: <1iikcuINN6fr@news.cerf.net>
  11. NNTP-Posting-Host: nic.cerf.net
  12.  
  13. In article <1iikcuINN6fr@news.cerf.net> hlf@nic.cerf.net (Howard Ferguson) writes:
  14. >The FAQ for this group describes how to put wrapper functions around 
  15. >member functions so they can be called as callbacks from X libraries
  16. >and the like. But if I am writting a c++ class library, surley I should
  17. >be able to provide a cleaner mechanism to my customers. Is there
  18. >a standard way of doing this???
  19. >
  20. >    ta,
  21. >        hlf
  22.  
  23. What I am really asking is how do I solve the problem above IN C++
  24. ONLY. Many thanks to those who supplied info on calling between C
  25. and C++ but that is  not the problem I am trying to solve. I was to 
  26. supply my colleges who are coding in C++ with some classes written in
  27. C++ which require calbacks. My point is that I should be able to
  28. provide something cleaner than what I must use if I am writting a
  29. C library which may be used by C++ coders ( e.g. Xview).
  30.  
  31.     hlf
  32.  
  33.  
  34.