摘要:最近我用 javamail 写接收和发送邮件的客户端,对于处理html的资料很少,我做了总结写点心得,由于时间原因,我在这里就详细和大家说拉,如果想知道更详细的资料,告诉我,我给大家发过去.(email:lixinbo@163.com)
......
摘要:
renderinghints 类定义了多种着色微调,它们存储在一个映射集的 graphics2d 对象里。setrenderinghint() 方法的参数是一个键以及对应的键值。在我们的代码中,第一个参数是代表 alpha 合成微调的键,第二个参数是该微调的值。该微调的其它可能的值有 value_alpha_interpolation_default,代表平台缺省值;以及 value_alp......
VC常用知识1: 得到系统时间日期(使用getlocaltime) cstring stime,syear,smonth,sday; 【程序编程相关:
sql server 中各个系统表的作用】 【推荐阅读:
利用VBScript及ADODB.Ste】 systemtime curtime; 【扩展信息:
WEB打印,去页眉和页脚】 getlocaltime(&curtime); syear.format("%d年",curtime.wyear); smonth.format("%d月",curtime.wmonth); sday.format("%d日",curtime.wday); stime = syear+ smonth + sday; // curtime.whour // curtime.wminute // curtime.wsecond ibm的 afxmessagebox(stime); 2: 分离字串
cstring str = "4d3f0a2278";
unsigned char a[12]; long x; for(int i = 0;i< (str.getlength()/2);i++) { sscanf(str.mid(2*i,2),"%x",&x); a[i] = x; }
3: 得到当前目录 (getcurrentdirectory)
char curpath[max_path]; dword size=max_path; getcurrentdirectory(size,curpath); afxmessagebox(curpath); ...
下一页 摘要: 最近在开发代码生成器的时候,需要读取模版文件,根据模板替换相应的字符,然后输出所期望的类,因为在java或者c++里面没有直接支持替换的功能,因此在实现模板字符替换的时候,需要编写一定的代码实现替换功能。对模板文件的操作,在 jdk 1.1中,支持两个新的对象 reader & writer, 它们只能用来对文本文件进行操作,而 jdk1.1中的 inputstream & ou......