- 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);

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Matthew Leverton
Supreme Loser
January 1999

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

Member #2,229
April 2002

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

Go to: