char p_filepath[MAX_PATH];
TCHAR w_FilePath[MAX_PATH];
DWORD len
= GetModuleFileName(NULL, w_FilePath, MAX_PATH);
if (len > 0)
{
len
= WideCharToMultiByte(CP_ACP, 0, w_FilePath, len, p_filepath,
sizeof(p_filepath)-1, NULL, NULL);
if( len > 0 )
{
p_filepath[len]
= '\0';
strcat( p_filepath,
"\\tmp.bmp" );
}
}

  

posted on 2011-09-11 22:37  一个人的天空@  阅读(814)  评论(0编辑  收藏  举报