[comp.os.msdos.programmer] TC++ Question: Casting member func to reg func

emills@ux1.cso.uiuc.edu (Evan Mills) (11/17/90)

Hello.  I'm using the CXL function library from Turbo C++ and have run
into a snag.  I need to call a function which requires as a parameter
a pointer to a function returning a void like this:
	int setonkey(...,void (*func)(void),...);
If I declare a regular C function:
	void foobar(void);
and call:
	setonkey(...,foobar,...);
everything's peachy.

Now I want to call a class member function:
	class Anything {
		...
		void foobar(void);
		...
		};
The closest I seem to be able to come is:
	setonkey(...,Anything::foobar,...);
but even this fails.

Suggestions *heartily* welcomed!  Thanks in advance.
	--- Evan
-- 
                                          @@@@@@@@  @@@       @@@   @@@@@@@@
           EVAN MILLS                    @@@        @@@       @@@  @@@
 Programmer & Twin Peaks Fanatic         @@@        @@@       @@@  @@@
          (217) 244-5726                  @@@@@@@   @@@  @@@  @@@   @@@@@@@