- Online Community Forums » Programming Questions » allegro5 Message Box text no print... lose sight of hangul why?

This thread is locked; no one can reply to it. rss feed Print
allegro5 Message Box text no print... lose sight of hangul why?
Member #15,194
June 2013

hi guys

i'm south korean allegro user

i am not good at english.

Sorry, but I don't speak English well.

(please understand even if you can't understand me clearly)

1#include <allegro5/allegro.h> 2#include <allegro5/allegro_native_dialog.h> 3 4int main(int argc, char **argv){ 5 6 ALLEGRO_DISPLAY *display = NULL; 7 8 9 if(!al_init()) { 10 al_show_native_message_box(NULL,NULL,NULL,"Could not initialize Allegro5",NULL,NULL); 11 } 12 13 display = al_create_display(800, 600); 14 if(!display) { 15 al_show_native_message_box(NULL,NULL,NULL,"Could not create Allegro Window",NULL,NULL); 16 } 17 18 // success 19 al_show_native_message_box(display,"MessageBox Title","help","English",NULL,ALLEGRO_MESSAGEBOX_OK_CANCEL); 20 // lose sight of hangul why? 21 // al_show_native_message_box(display,"메세지 박스","help","한글/",NULL,ALLEGRO_MESSAGEBOX_OK_CANCEL); 22 23 al_destroy_display(display); 24 25 return 0; 26}


Peter Wang
Member #23
April 2000

The Windows implementation of the native dialog addon does not yet support Unicode.

Member #15,028
April 2013

Maybe use a windows function like this:

MessageBox(al_get_win_window_handle(display), "Caption\n", "Title", MB_OKCANCEL);

It supports unicode but you might have to change it from the example I posted above. Read more here.

EDIT: Wrong link :-X

Member #15,194
June 2013

Peter Wang,ph03nix

Response Thank you very much.

ph03nix: al_get_win_window_handle(display) is in a good way thank you

Go to: