本次内容:异常机制1、为什么需要异常2、异常3、error类4、exception类5、exception类中的unchecked
exception 举例:6、常用异常处理方法a.try注意:一个try语句块至少得带一个finally语句块或catch语句块 1 package
array; 2....
分类:
编程语言 时间:
2014-05-12 16:17:54
阅读次数:
406
在Visual Studio
2010中,除了可以使用“创建Web应用程序”的方式来构建自己的Web项目之外,还可以通过创建“Web网站”的方式来构建Web项其中,Web网站的创建方法:打开Visual
Studio 2010主窗体,在菜单栏里选择“文件”|“新建|网站”命令,在弹出的“新建网站”....
分类:
Web程序 时间:
2014-05-10 20:10:34
阅读次数:
591
XMPP/Smack/Openfire javax.net.ssl.SSLException:
Received fatal alert:
internal_error解决:1、在链接openfire服务器后,线程休眠一段时间,再进行登录login操作。connection.connect();Th...
分类:
其他好文 时间:
2014-05-10 19:39:25
阅读次数:
349
安装libpng,出现“configure: error: ZLib not
installed”。
解决方法:
1. 进入ZLib的安装包,不必加--prefix参数命令:
./configure
make && make install
2. 进入libpng解压缩包中,输入:
./configure --prefix=/...
分类:
其他好文 时间:
2014-05-02 22:38:51
阅读次数:
289
1. 自定义验证--成功提示
1) 添加选项
errorClass: "unchecked",
validClass: "checked",
errorElement: "span",
errorPlacement: function (error, element) {
if (element.parent().find("span[for=""" + element.attr("id...
分类:
Web程序 时间:
2014-05-02 18:38:21
阅读次数:
467
从VC++6.0不足看VisualC++2010新特性
说起VC,有人想到维生素C(维C),有人想到风险投资(venture capital),
程序员们尤其是做底层开发的程序员或老程序员们第一感觉肯定会想到Visual C++6.0。为什么是6.0而不是其它的版本?这里的原因就不用我再多讲了,因....
分类:
其他好文 时间:
2014-05-02 17:55:07
阅读次数:
400
今天,所谓的劳动节,其实只是给予大部分行业的人,但是对于技术类或者是服务行业,都是没有所谓的休息假期。因为每次放假,反而是一个商机。
早上,刚整理完店面摆设,没多久就来了一位客户需要重装电脑。说电脑中毒,一开机检测, disk error, 问是否需要保存资料,得到的是“...
分类:
其他好文 时间:
2014-05-02 12:47:30
阅读次数:
354
出现下列错误:
mlogc.c:32:23: error: curl/curl.h: No such file or directory
mlogc.c:1091: error: expected ‘)’ before ‘*’ token
mlogc.c: In function ‘logc_init’:
出错原因:缺少libcurl-dev or libcurl-devel
...
分类:
其他好文 时间:
2014-05-02 10:50:35
阅读次数:
371
编译Lua时,出现这样的错误:
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error:
查阅了一下,centOS上需要安装readline-devel ncurses-devel
yum install readline-devel ncurses-devel
...
分类:
系统相关 时间:
2014-05-02 07:03:00
阅读次数:
455
示例代码将在注册表位置:HKEY_CURRENT_USER\Software\ 读写键值
bool LicenseManage::OpenRegKey(HKEY& hRetKey)
{
if (ERROR_SUCCESS == RegOpenKey(HKEY_CURRENT_USER,"Software", &hRetKey))
{
return true;
...
分类:
其他好文 时间:
2014-04-30 22:12:40
阅读次数:
195