How do I compile unsafe code in VS.NET
Click ‘Project | Properties’ from the menus.
Select ‘Configuration Properties’ folder and the ‘Build’ item under that.
Switch ‘Allow unsafe code blocks’ from ‘False’ to ‘True’.
(from Ryan LaNeve on microsoft.public.dotnet.framework.windowsforms)