摘要: 现在C++的字符分成两种类型wchar_t和char。其中 WCHAR==wchar_t,CHAR==char。TCHAR是一种条件编译的类型,根据条件可以代表wchar_t或char。CHAR实施上就是unsigned char,WCHAR为宽字符,而TCHAR根据是否支持unicode而不同。在... 阅读全文
posted @ 2014-05-14 09:52 冬子1221 阅读(1064) 评论(0) 推荐(0)
摘要: std::string GetFilePath() { char exepath[MAX_PATH];std::string strdir,tmpdir;memset(exepath,0,MAX_PATH); GetModuleFileName(NULL,exepath,MAX_PATH); tmp... 阅读全文
posted @ 2014-05-07 12:09 冬子1221 阅读(88) 评论(0) 推荐(0)