码迷,mamicode.com
首页 >  
搜索关键字:public void __cdecl    ( 122950个结果
ASP.NET Web API中的依赖注入
什么是依赖注入 依赖,就是一个对象需要的另一个对象,比如说,这是我们通常定义的一个用来处理数据访问的存储,让我们用一个例子来解释,首先,定义一个领域模型如下:namespace Pattern.DI.MVC.Models{ public class Product { pu...
分类:Windows程序   时间:2014-05-14 03:41:27    阅读次数:547
.net 错误处理
第一步在页面中写OnError方法:protected override void OnError(EventArgs e){Exception ex = Server.GetLastError();//在服务器获取最新产生的错误Response.Write("Error"+ex.Message);...
分类:Web程序   时间:2014-05-14 03:37:17    阅读次数:303
Bootstrap_02_流动网格布局
<!doctypehtml> <html> <head> <title>益司CMS-PC与手机建站集成</title> <metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"> <linkhref="__PUBLIC__/bootstrap/css/bootstrap...
分类:其他好文   时间:2014-05-12 03:54:09    阅读次数:253
Bootstrap_01_网格布局
<!doctypehtml> <html> <head> <title>益司CMS-PC与手机建站集成</title> <metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"> <linkhref="__PUBLIC__/bootstrap/css/bootstrap...
分类:其他好文   时间:2014-05-12 03:13:07    阅读次数:236
android 从源码分析为什么Listview初次显示时没滚动却自动调用onScroll方法的原因
我们做Listview的分批加载时,需要为Listview调用setOnScrollListener(具体代码可见我上一篇博客) 可是,我们会发现,当运行程序时,listview明明没有滚动,那为什么系统会调用onScroll方法呢? 我们先看setOnScrollListener源码: public void setOnScrollListener(OnScrollListener...
分类:移动开发   时间:2014-05-11 22:32:56    阅读次数:357
C# 简单的特殊输出
class Program { static void Main(string[] args) { int i = 940; int j = 73; Console.WriteLine("{0,5}\n+{1,4}\n------\n{2,4}",i,j,i+j); Console.ReadKey(); } }输出结果为:...
分类:其他好文   时间:2014-05-11 22:28:49    阅读次数:298
android Listview分批加载+自动加载(附源码下载)
直接上代码,代码有注释: public class TestForListviewActivity extends Activity implements OnScrollListener { private ListView mListview = null; private View mFooterView; private PaginationAdapter mAdapter; ...
分类:移动开发   时间:2014-05-11 21:41:43    阅读次数:394
并发 错误 java.lang.IllegalMonitorStateException: current thread not owner 分析
public class ThreadTest implements Callable { public String call() throws Exception { // TODO Auto-generated method stub wait(10000); return "hello"; } }调用代码: public static void main(Stri...
分类:编程语言   时间:2014-05-11 21:27:24    阅读次数:533
Cocos2d-x Update Draw 执行
先抛出结果,Update先于Draw执行。 以Android平台来分析 找到Cocos2dRender.java 找到函数 public void onDrawFrame(final GL10 gl) 这是Android OpenGL的刷帧函数,在里面Cocos2d-x执行了Native函数 Cocos2dxRenderer.nativeRender(); 找...
分类:其他好文   时间:2014-05-11 21:21:09    阅读次数:427
进程终止和exit函数
内核要执行一个应用程序,唯一的途径是通过系统调用,exec函数,exec又会调用启动程序,启动程序(通常是汇编语言)以类似下面的方式调用main函数: void exit(main(argc, argv)); 那么在main函数末尾使用exit(0)和使用return 0是等价的。这里有三个正常终止程序的函数: void exit(int status); // 先执行一些清理操作,...
分类:其他好文   时间:2014-05-11 20:11:19    阅读次数:394
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!