- 博客(3)
- 资源 (3)
- 收藏
- 关注
转载 unicode2utf8 和 ut82unicode转换
void UNICODE_to_UTF8(const CString& unicodeString, std::string& str){ int stringLength = ::WideCharToMultiByte(CP_UTF8, NULL, unicodeString, wcslen(unicodeString), NULL, 0, NULL, NULL); char* buffe
2016-08-17 13:58:42 837
原创 CBitmap图像拷贝
BOOL CopyCBitmapFromSrc(CBitmap* pBitmapDest, CBitmap* pBitmapSrc){ BOOL bFlag = FALSE; BITMAP bmpInfo; // 获取源图信息 pBitmapSrc->GetBitmap(&bmpInfo); // 求取每一个像素所占的字节 long sizeBits = bmpInfo.bmWid
2016-08-17 13:57:40 578
原创 ssanf格式化字符串
#include#include#includeint main(){ char str[100]; //用法一:取指定长度的字符串 sscanf("12345","%4s",str); printf("用法一\nstr = %s\n",str); //用法二:格式化时间 int year,month,day,hour,minute,second; sscanf("2013
2016-08-12 11:21:57 932
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人