#include <allegro5/allegro.h>
#include <allegro5/allegro_native_dialog.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_windows.h>

#define ScreenWidth 800
#define ScreenHeight 600

int main(int argc, char **argv)
{
   ALLEGRO_DISPLAY *display = NULL;
   HDC hdc;
   PAINTSTRUCT ps;
   HWND hWnd;
   TCHAR *str= TEXT("Englist,ÇÑ±Û");

   al_init();
   al_set_new_display_flags(ALLEGRO_WINDOWED);
   display = al_create_display(ScreenWidth,ScreenHeight);
   al_set_window_position(display,200,100);
   al_set_window_title(display,"String Output Test");

   hWnd = al_get_win_window_handle(display);
   hdc = GetDC(hWnd);

   al_clear_to_color(al_map_rgb(255,255,255));
   
   TextOut(hdc,0,0,str,lstrlen(str));
   
   MessageBox(hWnd,"window","stop",MB_OK);

   al_flip_display();
   al_rest(3.0);
   ReleaseDC(hWnd,hdc);  
   al_destroy_display(display);
   return 0;
}
