DeleteDC sounds like you need to add Gdi32.lib to your list of libraries. I'm not sure about DeleteObject, so add that lib and see if its happy.