使用VC 6.0 mfc实现编程刚学的图像学,挺难学的,show 代码吧void
CLineView::OnDraw(CDC* pDC) { CLineDoc* pDoc =
GetDocument();ASSERT_VALID(pDoc);// TODO: add draw code for na...
分类:
其他好文 时间:
2014-06-04 18:15:36
阅读次数:
627
http://jxls.sourceforge.net/ InputStream
templateInput = null; InputStream in = null; OutputStream out = null; try {
templateInput ...
分类:
其他好文 时间:
2014-06-03 09:40:13
阅读次数:
212
1.先安装soap扩展sudo yum install
php-soap2.安装openssL3.function issure($sn){//通过soap链接接口 进行确认是否是正确的sn码 try{
$client = new SoapClient("https://118.124.139.23...
分类:
其他好文 时间:
2014-06-03 07:32:16
阅读次数:
280
判断网络文件 存在 3秒之内返回结果方法2:
//////判断网络文件是否存在1.5秒得到出结果如这样的格式http://191.168.1.105:8000/CPW/wmgjUpdate.7z/////////privateboolUrlIsExists(stringURL){try{System...
分类:
其他好文 时间:
2014-05-31 17:27:47
阅读次数:
164
public String createPDF(ProjectManageBase
projectManageBase) { Map map = new HashMap();// velocity模板中的变量 try {
//模版vm的路径 ...
分类:
编程语言 时间:
2014-05-31 07:57:43
阅读次数:
809
要看出现的是哪种异常了。如果是使用某些定义好的函数,并且函数本身会产生异常处理方法一般两种:1.自己用try{}catch(){}语句捕获异常并处理。2.在定义接口的后面写上throw
Exception。把异常抛出让使用接口的人处理异常。两种方法都可以。但如果是RuntimeException异常...
分类:
编程语言 时间:
2014-05-30 18:30:53
阅读次数:
429
Given an array of integers, every element
appearsthreetimes except for one. Find that single one.Note:Your algorithm
should have a linear runtime comp...
分类:
其他好文 时间:
2014-05-30 15:15:53
阅读次数:
225
转载链接:http://blog.csdn.net/atfield/article/details/4037248前段时间花了几天一直在用WinDbg调试一个比较棘手的Bug。这个Bug是C#
Team那边发现的,他们的Testcase跑大概10分钟左右会出一个在CLR内部的ASSERT。比较难调试...
分类:
数据库 时间:
2014-05-30 08:44:21
阅读次数:
255
1 public static String encode(String str) 2 { 3
String code=null; 4 try { 5 MessageDigest digest=MessageDigest.ge...
分类:
其他好文 时间:
2014-05-30 00:26:11
阅读次数:
213
publicstaticvoidmain(String[]argv){try{
System.out.println(“中文”);//1 System.out.println(“中文”.getBytes());//2
System.out.println(“中文”.getBytes(“GB2312″...
分类:
编程语言 时间:
2014-05-29 20:24:06
阅读次数:
424