Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Error Message Box?  (Read 13830 times)

0 Members and 1 Guest are viewing this topic.

Andershizzle

  • Newbie
  • *
  • Posts: 16
    • View Profile
Error Message Box?
« 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...



But with a custom message.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Error Message Box?
« Reply #1 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.
SFML / OS X developer

phear-

  • Jr. Member
  • **
  • Posts: 64
    • MSN Messenger - LOApokalypse@hotmail.com
    • View Profile
    • http://gtproductions.org
Error Message Box?
« Reply #2 on: August 27, 2009, 11:41:56 pm »
Or use the windows API if your coding for windows
Eugene Alfonso
GTP | Twitter

Andershizzle

  • Newbie
  • *
  • Posts: 16
    • View Profile
Error Message Box?
« Reply #3 on: August 28, 2009, 04:27:01 am »
Well I'm trying to be as cross-platform as possible. Any ideas?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Error Message Box?
« Reply #4 on: August 28, 2009, 10:06:52 am »
wxWidget Qt ...
SFML / OS X developer

tiago221

  • Newbie
  • *
  • Posts: 24
    • View Profile
Error Message Box?
« Reply #5 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");