2008年3月16日星期日

mfc中_T宏的定义在tchar.h中

mfc中_T宏的定义在tchar.h中,如果编译不通过的话,将tchar.h  加入include段即可.

2008年3月12日星期三

auto_ptr只能用于管理从new返回的一个对象,它不能管理动态分配的数组。

auto_ptr只能用于管理从new返回的一个对象,它不能管理动态分配的数组。

MultiByteToWideChar注意

MultiByteToWideChar
int MultiByteToWideChar(    UINT CodePage,     DWORD dwFlags,             LPCSTR lpMultiByteStr,     int cbMultiByte,           LPWSTR lpWideCharStr,      int cchWideChar          );
其中的dwFlags在多数中文环境下都应该设置为0