04 2014 档案

摘要:一.IDE基础配置1.字体VC6中“Tools→Options→Format→Font”配置字体;VC2005中“工具→选项→环境→字体和颜色”配置字体。编写代码一般采用等宽字体,等宽点阵(位图)字体,相对矢量字体而言具有兼容性好和显示清晰的优点。常用的编程等宽字体包括Fixedsys(VC6和no... 阅读全文
posted @ 2014-04-28 16:51 Zucc_zt 阅读(324) 评论(0) 推荐(0)
摘要:void hex2str(char *str, uchar *hex,int len){int i;uchar l4,h4;for(i=0; i>4;l4=hex[i] & 0x0f;if (h4<=9)str[2*i] = h4 + ('0' -0);elsestr[2*i] = h4 + ('A... 阅读全文
posted @ 2014-04-16 14:13 Zucc_zt 阅读(905) 评论(0) 推荐(0)
摘要:Unicode下 string 转 CString[cpp]view plaincopystringmsg="";CStringcs;cs.Format(_T("%s"),CStringW(msg.c_str()));//CStringW是为了防止乱码Unicode下CString转换为char *[cpp]view plaincopy//方法一:使用API:WideCharToMultiByte进行转换CStringstr=_T("D:\\校内项目\\QQ.bmp");//注意:以下n和len的值大小不同,n是按字符计算的,len是 阅读全文
posted @ 2014-04-11 09:42 Zucc_zt 阅读(700) 评论(0) 推荐(0)