2013年5月20日

摘要: 命名空间“System”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?)写sharppcap的时候遇到的问题,解决方法,先把项目改成3.0 再改回3.5就好了。几种字符串转换, byte[] formal = new byte[] { 0x42, 0x51, 0x3, 0x6, 0x42, 0x51, 0x3, 0x6 }; string tmpstr = Encoding.ASCII.GetString(formal);//转换为字符串 显示BQ Console.WriteLine(tmpstr); String... 阅读全文
posted @ 2013-05-20 09:10 zhiying678 阅读(112) 评论(0) 推荐(0) 编辑

2013年3月23日

摘要: --------------------------------------------------------------------------使用messagebox:#include"windows.h"#include"tchar.h"MessageBox(NULL,_T("nihao吗"),_T("ab"),0);---------------------------------------------------------------------------在switch case中使用局部变量 1 阅读全文
posted @ 2013-03-23 15:34 zhiying678 阅读(97) 评论(0) 推荐(0) 编辑

2013年3月11日

摘要: XmlDocument和XDocument 1 private void button1_Click(object sender, EventArgs e) 2 { 3 XmlDocument doc = new XmlDocument(); 4 XmlDeclaration xdc= doc.CreateXmlDeclaration("1.0", "utf-8", null); 5 XmlElement rootelement = doc.CreateElement("Nodes"); 6... 阅读全文
posted @ 2013-03-11 11:32 zhiying678 阅读(128) 评论(0) 推荐(0) 编辑

2013年3月4日

摘要: 编译老错误,vc编程中出现 fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?找到配置属性-》C++ -->预编译头,选择不使用预编译头后来发现,是因为没有往工程里添加对应文件 唉 阅读全文
posted @ 2013-03-04 22:06 zhiying678 阅读(92) 评论(0) 推荐(0) 编辑

2013年2月22日

该文被密码保护。 阅读全文
posted @ 2013-02-22 14:43 zhiying678 阅读(6) 评论(0) 推荐(0) 编辑

2013年2月1日

摘要: 2013-02-01http://www.w3school.com.cn/xml/xml_tree.aspXML 文档必须包含根元素。该元素是所有其他元素的父元素。所有元素均可拥有文本内容和属性对应xml描述: 1 <bookstore> 2 <book category="COOKING"> 3 <title lang="en">Everyday Italian</title> 4 <author>Giada De Laurentiis</author> 5 <year> 阅读全文
posted @ 2013-02-01 14:52 zhiying678 阅读(122) 评论(0) 推荐(0) 编辑

导航