ok I have read tonnes of MSDN pages and I still can't find instructions on how to allow unsafe code in a build, try this.....
stick this under your other declaration at the top of any asp.net page:

unsafe public Button * curbtn;


if you can make the error go away please tell me how!