private Boolean Ping()
{
 PingOptions options = new PingOptions();
 options.DontFragment = true;
 options.Ttl = 128;

 string _32Chars = "12345678123456781234567812345678";
 byte[] _32BytesBuf = Encoding.ASCII.GetBytes(_32Chars);

 PingReply reply = null;
 try
 {
  Ping pingSender = new Ping();
  reply = pingSender.Send(strAddress, nTimeOut, _32BytesBuf, options);
 }
 catch (Exception ex)
 {
  Debug.WriteLine("[" + ex.Message + "]");
  return false;
 }

 return reply.Status == IPStatus.Success;
}

 


本文链接地址: C#中Ping类的使用
https://blog.qingfengju.com/index.asp?id=306

分类:Win32/C++ 查看次数:11216 发布时间:2011/12/19 0:53:34

原因是缺少中文字体,复制truetype中文字体(比如simsun.ttc)到/usr/share/fonts/truetype目录即可。

备注:
a.IP地址的命令设置方法(临时):
1.用su切换到root执行下列命令手动设置:
ifconfig eth0 <ip> netmask <掩码>
route add default gw <网关ip>

2.或者用下列命令自动获取:
dhclient eth0

b.安装图形界面工具
 apt-get install network-manager-gnome

 


本文链接地址: 体验Linux.7 通过CD安装Debian6.0.3之后中文乱码的解决
https://blog.qingfengju.com/index.asp?id=273

分类:Linux 查看次数:8612 发布时间:2011/12/5 13:37:09