SFML community forums

Help => System => Topic started by: Andershizzle on August 27, 2009, 06:52:29 am

Title: Error Message Box?
Post 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.
Title: Error Message Box?
Post by: Hiura on August 27, 2009, 09:42:22 am
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.
Title: Error Message Box?
Post by: phear- on August 27, 2009, 11:41:56 pm
Or use the windows API if your coding for windows
Title: Error Message Box?
Post by: Andershizzle on August 28, 2009, 04:27:01 am
Well I'm trying to be as cross-platform as possible. Any ideas?
Title: Error Message Box?
Post by: Hiura on August 28, 2009, 10:06:52 am
wxWidget Qt ...
Title: Error Message Box?
Post by: tiago221 on September 05, 2009, 11:17:09 pm
Code: [Select]
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:

Code: [Select]

ErrorMsg("goddamn error didnt load image blabla", "Error Title");