摘要:
转自:http://hi.baidu.com/honfei/blog/item/2356ad9b624a01b8c9eaf485.htmlVC9编译的程序在没有装过VC9(确切的说是.Net Framework3.5)的机器上运行时,如果提示“由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。”这个错误,那 么就说明该程序动态链接了VC9的运行时库,(如果还用到了MFC,那么可能动态链接了VC9的MFC库,同理还有ATL库),以及缺少对应的 manifest文件,程序在目标机器上没有找到这些库和配置文件,因此导致了这个错误。出现这种情况的VC9编译器可能存在3个版本 阅读全文
阅读排行榜
Android 结束进程的方法
2012-09-06 16:50 by java20130722, 490 阅读, 收藏,
摘要:
Android 结束进程,关闭程序的方法,经过这几天的调研,发现了Android结束一个进程的方法即采用下面这个类void android.app.ActivityManager.restartPackage(String packageName)public void restartPackage (String packageName)Since: API Level 3 Have the system perform a force stop ofeverything associated with the given application package. All processes 阅读全文
DataView使用
2012-03-07 09:38 by java20130722, 489 阅读, 收藏,
摘要:
using System;
using System.Data;
using System.Data.SqlClient; //DataView的MSDN参考网站:http://msdn.microsoft.com/en-us/library/8sd1cd0a.aspx
namespace Chapter13
{ class DataViews { static void Main(string[] args) { // connection string string connString = ... 阅读全文
paxos 实现
2013-07-22 01:06 by java20130722, 487 阅读, 收藏,
摘要:
本文主要介绍zookeeper中zookeeper Server leader的选举,zookeeper在选举leader的时候采用了paxos算法(主要是fast paxos),这里主要介绍其中两种:LeaderElection 和FastLeaderElection.我们先要清楚以下几点一个Server是如何知道其它的Server在zookeeper中,一个zookeeper集群有多少个Server是固定,每个Server用于选举的IP和PORT都在配置文件中除了IP和PORT能标识一个Server外,还有没有别的方法每一个Server都有一个数字编号,而且是唯一的,我们根据配置文件中的配 阅读全文
xmllint: command not found
2013-03-27 15:21 by java20130722, 485 阅读, 收藏,
摘要:
在编译android source code是时候,出现如下错误:Copy xml: out/target/product/generic/system/etc/apns-conf.xml
/bin/bash: xmllint: command not found
make: *** [out/target/product/generic/system/etc/apns-conf.xml] Error 127解决方法:安装xmllint : sudo apt-get install libxml2-utils 阅读全文
浙公网安备 33010602011771号