SFML community forums
Help => System => Topic started by: Andershizzle on August 27, 2009, 06:52:29 am
-
Hi I was wondering if there was any way to make an Error Message Box pop up? Similar to this...
(http://www.draycir.com/images/support/KB10009-ErrorMessageDialogBox.jpg)
But with a custom message.
-
You have to use another lib to be able to use that kind of window.
Or use a good gui tool inside a SFML window.
-
Or use the windows API if your coding for windows
-
Well I'm trying to be as cross-platform as possible. Any ideas?
-
wxWidget Qt ...
-
void ErrorMsg(std::string error, std::string title)
{
MessageBoxA(NULL, error.c_str(), title.c_str(), MB_ICONERROR | MB_OK);
}
Then where you want to put the error write:
ErrorMsg("goddamn error didnt load image blabla", "Error Title");