Original Post
I've not used function pointers too much yet, but I've tried it a little and get the idea. Now I do got a problem. I have a class like this: template class CContainer { public : .... void EraseAll( void (__cdecl *DeleteRoutine)(void) ); } DeallocateXFileContent(void); When I try pass this function as a function pointer argument like this.. m_XFileContainer.EraseAll(DeallocatedXFileContent); ...get the compile error: error LNK2001: unresolved external symbol "public: int __thiscall CContainer::EraseAll(void (__cdecl*)(void))" ......... If I do this with an ordinary class, without the template it's no problem. But with this class using the template variable, I get the compile error. I don't get it, how should I change my code to be able to pass the function in the argument list?