<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[anke7849631的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/anke7849631</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; anke7849631]]></copyright><item><title><![CDATA[C# Wpf集合双向绑定]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120086</link><guid>https://blog.csdn.net/anke7849631/article/details/102120086</guid><author>anke7849631</author><pubDate>Mon, 25 Mar 2019 01:37:00 +0800</pubDate><description><![CDATA[说明：
msdn中 ObservableCollection&lt;T&gt;类  表示一个动态数据集合，在添加项、移除项或刷新整个列表时，此集合将提供通知。
在许多情况下，所使用的数据是对象的集合。例如，数据绑定中的一个常见方案是使用ItemsControl（如ListBox、ListView或TreeView）来显示记录的集合。
可以枚举实现IEnumer...]]></description><category></category></item><item><title><![CDATA[[assembly: AssemblyVersion("1.0.1.*")] 指定版本字符串不符合所需格式 - major[.minor[.build[.revision]]]...]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120084</link><guid>https://blog.csdn.net/anke7849631/article/details/102120084</guid><author>anke7849631</author><pubDate>Wed, 06 Mar 2019 20:11:00 +0800</pubDate><description><![CDATA[报如下错误，

解决方法：打开项目文件，修改

打开项目文件修改：&lt;Deterministic&gt;true&lt;/Deterministic&gt; 为：&lt;Deterministic&gt;false&lt;/Deterministic&gt;



转载于:https://www.cnblogs.com/ChangTan/p/10485669.h...]]></description><category></category></item><item><title><![CDATA[C#中结构体与字节流互相转换]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120085</link><guid>https://blog.csdn.net/anke7849631/article/details/102120085</guid><author>anke7849631</author><pubDate>Tue, 13 Nov 2018 08:52:00 +0800</pubDate><description><![CDATA[C++的消息结构体如下

struct cs_message{

         u32_t        cmd_type;

         char username[16];

         u32_t        dstID;

         u32_t        srcID;

};



public class Conv...]]></description><category></category></item><item><title><![CDATA[字节转化为结构体BytesToStruct]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120082</link><guid>https://blog.csdn.net/anke7849631/article/details/102120082</guid><author>anke7849631</author><pubDate>Tue, 13 Nov 2018 08:47:00 +0800</pubDate><description><![CDATA[//结构体转字节数组
    public byte[] StructToBytes (object structObj)
    {
        
        int size = Marshal.SizeOf (structObj);//获取结构体的大小
        IntPtr buffer = Marshal.AllocHGlobal (size);//...]]></description><category></category></item><item><title><![CDATA[C#调用Microsoft.DirectX.DirectSound问题记录及解决]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120083</link><guid>https://blog.csdn.net/anke7849631/article/details/102120083</guid><author>anke7849631</author><pubDate>Fri, 09 Nov 2018 16:39:00 +0800</pubDate><description><![CDATA[问题1：初始化结构体WaveFormat或其他变量时卡死

修改App.config，修改方法如下： 
原App.config

&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; 　　&lt;startup&gt; 　　　　&lt;supportedRuntime version="v4.0...]]></description><category></category></item><item><title><![CDATA[C# Wpf集合双向绑定]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120080</link><guid>https://blog.csdn.net/anke7849631/article/details/102120080</guid><author>anke7849631</author><pubDate>Fri, 26 Oct 2018 11:47:00 +0800</pubDate><description><![CDATA[ObservableCollection&lt;类&gt; 用于同步更新集合，删除集合内的元素，界面也会同步删除，
前台代码

&lt;StackPanel Name="PriceSet" Margin="0,10,0,0" Visibility="Visible"&gt;
                &lt;ListBox HorizontalAlignment="Cent...]]></description><category></category></item><item><title><![CDATA[<转载>XML操作]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120081</link><guid>https://blog.csdn.net/anke7849631/article/details/102120081</guid><author>anke7849631</author><pubDate>Wed, 17 Jan 2018 20:43:00 +0800</pubDate><description><![CDATA[using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Web;
using System.Xml...]]></description><category></category></item><item><title><![CDATA[<转载>提升程序的特权(AdjustTokenPrivileges)]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120079</link><guid>https://blog.csdn.net/anke7849631/article/details/102120079</guid><author>anke7849631</author><pubDate>Sat, 24 Aug 2013 16:41:00 +0800</pubDate><description><![CDATA[首先列出需要的函数
1.OpenProcessToken
2.AdjustTokenPrivileges
3.LookupPrivilegeValue
--------------------------------------------------------------
首先需要获取进程的令牌句柄
OpenProcessToken的原型.






1...]]></description><category></category></item><item><title><![CDATA[<转载>批处理之FOR语句祥解]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120078</link><guid>https://blog.csdn.net/anke7849631/article/details/102120078</guid><author>anke7849631</author><pubDate>Tue, 20 Aug 2013 22:17:00 +0800</pubDate><description><![CDATA[批处理之FOR语句祥解

FOR这条命令基本上都被用来处理文本,但还有其他一些好用的功能!
看看他的基本格式(这里我引用的是批处理中的格式,直接在命令行只需要一个%号) FOR 参数 %%变量名 IN (相关文件或命令) DO 执行的命令
参数:FOR有4个参数 /d /l /r /f 他们的作用我在下面用例子解释 %%变量名 :这个变量名可以是小写a-z或者大写...]]></description><category></category></item><item><title><![CDATA[<转载>浅析如何去除Strings中的C#空格]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120077</link><guid>https://blog.csdn.net/anke7849631/article/details/102120077</guid><author>anke7849631</author><pubDate>Thu, 26 Jul 2012 22:22:00 +0800</pubDate><description><![CDATA[string text = "  My test\nstring\r\n is\t quite long  ";  string trim = text.Trim();

这个'trim' 字符串将会是:
"My test\nstring\r\n is\t quite long" (31 characters)
另一个清除C#空格方法是使用 String.Replace 方...]]></description><category></category></item><item><title><![CDATA[<转载>C#如何获取本机网络ip地址]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120076</link><guid>https://blog.csdn.net/anke7849631/article/details/102120076</guid><author>anke7849631</author><pubDate>Fri, 20 Jul 2012 23:00:00 +0800</pubDate><description><![CDATA[C#如何获取本机网络ip
有几种方法获取本机局域网地址和网络地址。
1. 获取本机局域网地址：
使用IPHostEntry

2. 获取本机网络ip地址
通过向网站http://www.ip138.com/ip2city.asp发送webrequest，分析返回的数据流
 try  { ...]]></description><category></category></item><item><title><![CDATA[<转载>在C#中接收系统屏幕锁定和解锁的事件]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120075</link><guid>https://blog.csdn.net/anke7849631/article/details/102120075</guid><author>anke7849631</author><pubDate>Sun, 01 Jul 2012 21:45:00 +0800</pubDate><description><![CDATA[Microsoft.Win32.SystemEvents.SessionSwitch += new Microsoft.Win32.SessionSwitchEventHandler(SystemEvents_SessionSwitch);
void SystemEvents_SessionSwitch(object sender, Microsoft.Win32.SessionS...]]></description><category></category></item><item><title><![CDATA[<转载>C# 让程序自动以管理员身份运行]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120073</link><guid>https://blog.csdn.net/anke7849631/article/details/102120073</guid><author>anke7849631</author><pubDate>Sun, 26 Feb 2012 16:58:00 +0800</pubDate><description><![CDATA[在程序中加入MANIFEST资源
打开Vs2005或vs2008工程，看在Properties下是否有app.manifest这个文件;如没有，右击工程在菜单中选择“属性”。
　选中"Security"，在界面中勾选"Enable ClickOnce Security Settings"后，在Properties下就有自动生成app.manifest文件。
　　打开app.mani...]]></description><category></category></item><item><title><![CDATA[<转载>C# .NET 获取网络适配器信息]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120074</link><guid>https://blog.csdn.net/anke7849631/article/details/102120074</guid><author>anke7849631</author><pubDate>Sat, 25 Feb 2012 15:45:00 +0800</pubDate><description><![CDATA[1：NetworkInterface 类：
 
该类位于 System.Net.NetworkInformation 命名空间
 
该类可以方便的检测本机有多少个网卡（网络适配器），网卡信息，哪些网络连接可用等。
 
2：常用方法和属性：
 



view sourceprint?
 




NetworkInterface[] adapters...]]></description><category></category></item><item><title><![CDATA[Windows7无法访问Windows2003共享的解决方案]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120071</link><guid>https://blog.csdn.net/anke7849631/article/details/102120071</guid><author>anke7849631</author><pubDate>Fri, 10 Feb 2012 21:09:00 +0800</pubDate><description><![CDATA[Windows 7 从Beta版到之后发布的稳定版本，与之前其他版本的操作系统之间会出现一些较异常的问题。
今天要解决的是Windows7无法访问Windows2003共享的问题
【问题描述】：
Windows 7 无法访问Windows2003共享，出现“系统错误 86。网络密码不正确”，但是这些问题都是正确的，经分析问题可能出现在用户身份验证上。
【解决方法】：
首先，我们...]]></description><category></category></item><item><title><![CDATA[以当前系统默认的编码写入文件]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120072</link><guid>https://blog.csdn.net/anke7849631/article/details/102120072</guid><author>anke7849631</author><pubDate>Sun, 15 Jan 2012 22:29:00 +0800</pubDate><description><![CDATA[FilePatch = Path.Combine(movie.SaveFolderPatch, "电影资料.txt");
                    FileInfo fi = new FileInfo(FilePatch);
                    if (fi.Exists)
                        fi.Delete()...]]></description><category></category></item><item><title><![CDATA[<转载>HTML实体字符]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120069</link><guid>https://blog.csdn.net/anke7849631/article/details/102120069</guid><author>anke7849631</author><pubDate>Sun, 01 Jan 2012 22:18:00 +0800</pubDate><description><![CDATA[字符


字符编号


实体名字


说明




—


&amp;#00;


—


未使用Unused




—


&amp;#01;


—


未使用Unused




—


&amp;#02;


—


未使用Unused




...]]></description><category></category></item><item><title><![CDATA[<转载>C# 中参数化模糊查询]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120070</link><guid>https://blog.csdn.net/anke7849631/article/details/102120070</guid><author>anke7849631</author><pubDate>Sat, 31 Dec 2011 21:43:00 +0800</pubDate><description><![CDATA[这是我觉得非常有必要记录的一个知识点，今天尝试过N次，都没有搞定。最后在网上搜了下终于明白了ASP.Net之参数化模糊查询参数化的奥妙。
首先是sql语句组织一块
例如：string sql = "select * from tb_Student where Name like @Name"; 我就是在这里弄了很久 不知道%要插在什么地方。
其次是参数的构造:
SqlComman...]]></description><category></category></item><item><title><![CDATA[<转载>SQL Server 数据库 执行命令（方法 2：带参数的 SQL 命令）]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120067</link><guid>https://blog.csdn.net/anke7849631/article/details/102120067</guid><author>anke7849631</author><pubDate>Wed, 28 Dec 2011 02:10:00 +0800</pubDate><description><![CDATA[此方法用于对 SQL Server 数据库执行插入、更新、删除操作，用户只需输入连接字符串、要执行的SQL命令、SQL 命的参数，即可执行此命令。此方法要求添加 System.Data.SqlClient 的引用。

具体使用方法请参见示例代码。

/// &lt;summary&gt;
///  SQL Server 插入、更新、删除表数据（方法二：带参数的 SQL 命令）...]]></description><category></category></item><item><title><![CDATA[<转载>C#使用SqlDataAdapter.Update更新数据库]]></title><link>https://blog.csdn.net/anke7849631/article/details/102120068</link><guid>https://blog.csdn.net/anke7849631/article/details/102120068</guid><author>anke7849631</author><pubDate>Tue, 27 Dec 2011 19:41:00 +0800</pubDate><description><![CDATA[此处将资料从数据库得出后显在DataGridView上显示。然后变更数据。变更数据的方法在按钮事件中。
 资料显示方法不用多说。
 更新时主要用到SqlCommandBuilder类和SqlDataAdapter.Update()方法。
SqlCommandBuilder对象负责生成用于更新数据库的SQL语句，不必自己创建这些语句。
 UpDate方法...]]></description><category></category></item></channel></rss>