typedef void (__stdcall *lpfnDelegateQueryResult)(char **szColName, char **szColValue, int ColCount, void * obj); bool RunQueryWithResults(tstring szQuery, lpfnDelegateQueryResult callback, void * obj); void DevicesStorageList::ParseQueryResult(const char **szColName, const char **szColValue, int COlCount, void * obj) { ... } RunQueryWithResults(szQuery, ???, NULL);