Code:
void test()
{
    beep();
}

function calling_func(void* p)
{
    void f();
    f = p;
    f();
}


Pleas be aware your function "test" does not return anything and hence should be declarated as void, not function.

Last edited by Uhrwerk; 02/02/13 14:22. Reason: Nijnad by JustSid. :-(

Always learn from history, to be sure you make the same mistakes again...