A better messagebox?

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

Uh, wrap it?

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

Matthew Leverton

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


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

Thread #606890. Printed from Allegro.cc