// A single line of C-code needed MessageBox(NULL, "An error has occurred!", "Title!", MB_ICONERROR | MB_OK);