Click to See Complete Forum and Search --> : pointer to member functions


bdonegan
December 11th, 2005, 01:38 PM
Hi,

I'm trying to get multi-threading working in my app, using the DirectPlay threadpool class. I'm trying to create a new thread and need to provide a delegate using ThreadStart. This leads me to trying to pass a member function as an argument. If i try to pass the name of the member function it says i need to pass a pointer to a member function. I've checked all over and come across the idea of putting the & before the name of the function. At least that is what MSDN told me to do! If i do this i get '& requires l-value' as an error. Does anyone know what is going on here? Any knowledge on this problem would be appreciated.