前台代码:1 2 3 4 5 6 后台代码: 1 /// 2 /// Button单击事件 3 /// 4 /// 5 /// 6 protected void Button2_Click(object sender, EventArgs e) 7 { 8 string s = st...
分类:
其他好文 时间:
2015-01-31 00:08:30
阅读次数:
186
前台代码:1 2 3 4 5 6 7 8 后台代码: 1 /// 2 /// Button单击事件 3 /// 4 /// 5 /// 6 protected void Button1_Click(object sender, EventArgs e) 7 {...
分类:
其他好文 时间:
2015-01-31 00:04:18
阅读次数:
184
C++ override overload 的区别override是指在不同作用域中,多个函数原型完全一样,而实现却不同的函数。在C++中,经常发生在类的继承中。当基类中的某个方法是virtual或pure virtual函数时(当然访问权限必须是public或protected,因为从C++设计思...
分类:
编程语言 时间:
2015-01-31 00:03:57
阅读次数:
289
今天有个客户需求,要内置一个不可删除的视频。
不可删除的话,不能在设备中删除,USB连接电脑也不能删除。那么直接放到system/media/下好了,这样对用户就完全不可见了,这样还不行,完全不可见,就失去了内置视频的意义,所以我们还要在视频播放器中显示出来,这就要修改播放器的源码,让播放器读取Internal的媒体文件即可。
adb shell,查看如下目录
/data/data/...
分类:
移动开发 时间:
2015-01-30 22:46:37
阅读次数:
570
一:AlertDialog AlertDialog的构造方法全部是Protected的,所以不能直接通过new一个AlertDialog来创建出一个AlertDialog。 要创建一个AlertDialog,就要用到AlertDialog.Builder中的create()方法。 AlertDial...
分类:
移动开发 时间:
2015-01-30 17:34:25
阅读次数:
188
原因是mount的方式问题,root后运行 su mount -o rw,remount /mnt/sdcard //SDCardmount -o rw,remount /mnt/internal //内部存储,每部Android手机的内部存储路径可能不同,要写对路径 这样就可以了。转自:htt.....
分类:
移动开发 时间:
2015-01-30 17:00:32
阅读次数:
325
C++ 编写一个不可复制的类
flyfish
Effective C++:条款06
若不想使用编译器自动生成的函数,就该明确拒绝 .
Explicitly disallow the use of complier-generated functions you do not want.
老式C++的写法
class noncopyable
{
protected:
nonco...
分类:
编程语言 时间:
2015-01-30 16:04:54
阅读次数:
185
测试数据准备:
SQL> create user sunhailong identifiedby abcd;
User created.
SQL> alter user sunhailong defaulttablespace users;
User altered.
SQL> grant dba to sunhailong;
Grant succeede...
分类:
其他好文 时间:
2015-01-30 15:58:34
阅读次数:
126
有时需要连接多个数据库,数据源不一致,需要配置。
1、配置xml。一个数据源,一个template。
......
可重复配置多个。
对应的class,是继承BasicDataSource。并可进行加密操作。
2、公共类。
@Autowired
protected JdbcTemplate jdbcTemplate;
@Autowired
pr...
分类:
编程语言 时间:
2015-01-30 10:48:50
阅读次数:
196
protected void bt_SendMail_Click(object sender, EventArgs e) { string result = sendSalaryMail(); lbResult.Text = result; ...
分类:
其他好文 时间:
2015-01-30 10:21:06
阅读次数:
233