环境Visual Studio 2012,具体代码如下#include #include #include void PrintNumber(int num){ std::cout f_print_num = PrintNumber; f_print_num(1024); // ...
分类:
编程语言 时间:
2014-06-28 14:19:07
阅读次数:
267
案例环境: 启动一台数据库服务器(Windows Server 2003)的Reporting Service(SQL Server 2008 R2)服务时,出现如下错误信息: System.InvalidOperationException: Cannot start service Report...
分类:
其他好文 时间:
2014-06-23 08:24:07
阅读次数:
415
今天在进行代码检查的时候出现下面的异常:1 type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang...
分类:
编程语言 时间:
2014-06-23 08:05:13
阅读次数:
381
apt-get install lib32z1 如果libz.so.1: cannot open shared object file: No such file or directory在/etc/ld.so.conf中加入/usr/lib 增加类库所有路径 /sbin/ldconfig –v」来...
分类:
其他好文 时间:
2014-06-23 07:44:47
阅读次数:
306
命题 当service经常被远程调用时,我们经常常使用到aidl来定一个接口供service和client来使用,这个事实上就是使用Binder机制的IPC通信。当client bind service成功之后,系统AM会调用回调函数onServiceConnected将service的IBind....
分类:
其他好文 时间:
2014-06-23 00:50:30
阅读次数:
211
Caught: System.InvalidOperationException: The argument of type 'XXX' cannot be used. Make sure that it is declared on an activity. at System.Activit.....
分类:
其他好文 时间:
2014-06-23 00:18:28
阅读次数:
230
服务类
中间人:service服务中的bind对象
创建中间人并通过onBinder方法的return暴露出去
在服务类创建一个服务
创建中间人继承Binder
MainActivity类
声明服务的中间人
private ServiceTese.MyBinder myBinder;
链接成功的时候赋值se...
分类:
其他好文 时间:
2014-06-22 21:36:21
阅读次数:
188
执行网络I/O,一个进程必须做的第一件事就是调用socket函数,指定期望的通信协议类型。
#include
int socket(int family, int type, int protocol);
/*返回值:若成功则为非负描述符,若出错则为-1*/
socket函数成功时返回一个小的非负整数值,它与文件描述符类似,把它称为套接字描述符,简称sockfd。family参数指明协议...
分类:
其他好文 时间:
2014-06-22 15:40:10
阅读次数:
301
相信不少人遇到过ORA-02429: cannot drop index used for enforcement of unique /primary key 这个错误,对应的中文提示“ORA-02429: 无法删除用于强制唯一/主键的索引”,其实从错误提示信息已经很明显了。下面还是用一个简单的例...
分类:
其他好文 时间:
2014-06-21 14:04:25
阅读次数:
297
报这个错,只有一个原因,就是转化的类型不对.接口过父类的子类,在强制转换的时候,一定要用接口父类来定义。代码示例:package com.luoluo.dao.impl;import java.sql.Connection;import java.sql.SQLException;import ja...
分类:
编程语言 时间:
2014-06-20 20:58:03
阅读次数:
900