LCID应用

GetDateFormat(
   MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT),
   NULL, //Flags
   &tm,  //Time
   L"dd','MMM dd",//Format String
   buf,  //String buffer
   256);
MessageBox(NULL,buf,L"NLS Test",0);

GetDateFormat(
   MAKELCID(MAKELANGID(LANG_CHINESE,SUBLANG_CHINESE_SIMPLIFIED),SORT_CHINESE_PRC),
   NULL, //Flags
   &tm,  //Time
   L"dd','MMM dd",//Format String
   buf,  //String buffer
   256);
MessageBox(NULL,buf,L"NLS Test",0);

posted on 2012-06-21 08:14  spinsoft  阅读(223)  评论(0编辑  收藏  举报