- Online Community Forums » Installation, Setup & Configuration » A better messagebox?

This thread is locked; no one can reply to it. rss feed Print
A better messagebox?
Member #8,434
March 2007

Hello everyone, I am looking at Allegro 5.01 and I would like to implement simple diagnostic popups. Looking through the documentation, I encountered the al_show_native_message_box method. However, this brings in a ton of parameters that makes for a long line even if NULL is used a lot. Is there a shorter, simpler message box to be had?

al_show_native_message_box(NULL, NULL, NULL,"failed to initialize display!", NULL, NULL);

Arthur Kalliokoski
Second in Command
February 2005

Uh, wrap it?

void show_my_message_box(char *strptr)
    al_show_native_message_box(NULL, NULL, NULL,strptr, NULL, NULL);

They all watch too much MSNBC... they get ideas.

Matthew Leverton
Supreme Loser
January 1999

If you want debug logging, see: al_append_native_text_log().

Neil Roy
Member #2,229
April 2002

Or compile your debug version as a console app, then printf()/cout to the console.

“I love you too.” - last words of Wanda Roy

Go to: