Quote:
button(0,0, "over.dds", "click.dds", "clickoff.dds",function, NULL, NULL);
and don't just put function, you need the name of the function that you're using
Code:
...
button(0,0, "over.dds", "click.dds", "clickoff.dds",fnc_thisone, NULL, NULL);
...
}

function fnc_thisone(){
 beep();
}