Returning a function pointer

Started by
1 comment, last by Maxxes 22 years, 7 months ago
I want to have a function that returns a pointer to another function. Is that possible? The compiler doesn''t accept a function prototype like this: int(*)(int) GetPointer(void); error C2059: syntax error : '')''
Advertisement
  typedef void (*FuncPointer)(void);FuncPointer GetFunc(void);  


[Resist Windows XP''s Invasive Production Activation Technology!]
Well that seems to work

Thanks for the very quick response

This topic is closed to new replies.

Advertisement