会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Kevin Gao
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
68
69
70
71
72
73
74
75
76
···
83
下一页
2011年11月5日
DES加密/解密类
摘要: /// /// DES加密/解密类。 /// public class DESEncrypt { public DESEncrypt() { } ...
阅读全文
posted @ 2011-11-05 10:36 Kevin Gao
阅读(9)
评论(0)
推荐(0)
2011年11月4日
C# API
摘要: C:/ProgramFiles/MicrosoftVisual Studio .NET/ FrameworkSDK/Samples/ Technologies/ Interop/PlatformInvoke/ WinAPIs/CS目录下有大量的调用API的例子。一、调用格式using System.Runtime.InteropServices; //引用此名称空间,简化后面的代码//使用DllImportAttribute特性来引入api函数,注意声明的是空方法,即方法体为空。[DllImport("user32.dll")]public static extern Re
阅读全文
posted @ 2011-11-04 18:04 Kevin Gao
阅读(401)
评论(0)
推荐(0)
C# API
摘要: C:/ProgramFiles/MicrosoftVisual Studio .NET/ FrameworkSDK/Samples/ Technologies/ Interop/PlatformInvoke/ WinAPIs/CS 目录下有大量的调用 API...
阅读全文
posted @ 2011-11-04 18:04 Kevin Gao
阅读(19)
评论(0)
推荐(0)
Invoke and BeginInvoke
摘要: 在Invoke或者BeginInvoke的使用中无一例外地使用了委托Delegate。 一、为什么Control类提供了Invoke和BeginInvoke机制?关于这个问题的最主要的原因已经是dotnet程序员众所周知的,我在此费点笔墨再次记录到自己的日志,以便日后提醒一下自己。1、windows程序消息机制Windows GUI程序是基于消息机制的,有个主线程维护着一个消息泵。这个消息泵让windows程序生生不息。Windows GUI程序的消息循环Windows程序有个消息队列,窗体上的所有消息是这个队列里面消息的最主要来源。这里的while循环使用了GetMessage()这个方法,
阅读全文
posted @ 2011-11-04 17:18 Kevin Gao
阅读(270)
评论(0)
推荐(1)
Invoke and BeginInvoke
摘要: 在Invoke或者BeginInvoke的使用中无一例外地使用了委托Delegate。 一、为什么Control类提供了Invoke和BeginInvoke机制? 关于这个问题的最主要的原因已经是dotnet程序员众所周知的,我在此费点笔墨再次记录到自己...
阅读全文
posted @ 2011-11-04 17:18 Kevin Gao
阅读(6)
评论(0)
推荐(0)
C#文件路径操作总结
摘要: 一、获取当前文件的路径1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径,包括文件名。2. System.Environment.CurrentDirectory 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3. System.IO.Directory.GetCurrentDirectory() 获取应用程序的当前工作目录。这个不一定是程序从中启动的目录啊,有可能程序放在C:/www里,这个函数有可能返回C:/Documents and Settings/ZYB/,或者C.
阅读全文
posted @ 2011-11-04 17:01 Kevin Gao
阅读(445)
评论(0)
推荐(0)
C#文件路径操作总结
摘要: 一、获取当前文件的路径 1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径,包括文件名。 2. System.Environme...
阅读全文
posted @ 2011-11-04 17:01 Kevin Gao
阅读(10)
评论(0)
推荐(0)
C#判断常见类型格式是否正确的类
摘要: //C#判断常见类型格式是否正确的类 public class GF_IsOk { /// <summary> /// 判读是否是IP地址 /// </summary> /// <param name="in_str"></param> /// <returns></returns> public static bool IsIPStr(string in_str) { IPAddress ip; return IPAddress.TryParse(in_str, out ip); } /// <
阅读全文
posted @ 2011-11-04 16:45 Kevin Gao
阅读(3428)
评论(0)
推荐(0)
C#判断常见类型格式是否正确的类
摘要: //C#判断常见类型格式是否正确的类 public class GF_IsOk { /// /// 判读是否是IP地址 /// /// /// ...
阅读全文
posted @ 2011-11-04 16:45 Kevin Gao
阅读(19)
评论(0)
推荐(0)
C#中各种数据类型转换的方法的类
摘要: //各种数据类型转换方法的类 public class GF_Convert { /// /// 字符串 转换 char数组 /// /// /// ...
阅读全文
posted @ 2011-11-04 16:39 Kevin Gao
阅读(15)
评论(0)
推荐(0)
上一页
1
···
68
69
70
71
72
73
74
75
76
···
83
下一页