自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 收藏
  • 关注

原创 C# GC垃圾自动回收(陷阱)

测试类代码: public class Demo : IDisposable { ~Demo() { MessageBox.Show("释放非托管资源"); } public void Dispose() {

2014-11-19 22:13:00 3548

原创 C# Hex(16进制转换算法)

static string Byte2Hex(byte wbyte)        {            string ret = null;            var arr = "0123456789ABCDEF";            var len = arr.Length;            ret += arr[wbyte / len].ToStrin

2014-10-04 22:43:14 1495

原创 VB Google Translation

REM Form1.vbImports System.IOImports System.NetImports System.TextPublic Class Form1 Private spVoice As SpVoice Private Function GoogleTranslate(ByVal [Text] As String) As String

2014-08-23 00:02:35 1203

原创 C# 序列化实现类的深拷贝

// [Serializable] 标记在类上方,我的这串代码就可以使用了

2014-08-02 02:46:44 666

原创 C# DOS回显(匿名管道Pipe)

// 起初打算采用CreatePipe创建匿名管道来着,不过却无法得到

2014-07-26 14:28:53 2234 1

原创 C# 枚举进程模块

// namespace eMod{    using System;    using IO = System.IO;    using System.Collections.Generic;    using System.Text;    using System.Diagnostics;    using System.Runtime.InteropServ

2014-07-17 19:18:48 3006

原创 C# VBRegExp10

namespace Active{ using System; using System.Reflection; using System.Collections.Generic; public class RegExp { object ComObject; Type ComType; void Inint()

2014-07-12 02:37:01 663

原创 C# PicBtn Control 图形按钮

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropService

2014-06-28 14:12:37 716

原创 C# 取活动网卡IP地址

private List IPActiveAddress { get { var IPAddressCollection = new List(0); var Collection = Dns.GetHostAddresses(Dns.GetHostName());

2014-06-24 17:12:07 1052

原创 C# 指针

stackalloc

2014-06-17 23:47:43 543

原创 C# 读HTTP文件(API)

此代码可以解决很多不必要的问题,上次的XMLHTTP读文件的方式,容易出现在没网时出现错误,所以另发一个using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Sys

2014-06-16 21:58:32 1698

原创 C# 监控网络流量 MIB_IF_TABLE2

通过

2014-06-16 13:13:06 2067

原创 C# 位运算

位与6 & 3  0000 0110&0000 0011    相同取真、不同取假0000 0010位或6 | 3 110|011-----    一真得真 111异或6 ^ 3 110^011-----  相同取假、不同取真 101取反  ~6 = -7; // 反转二进制右移6 >> 1 = 3  110

2014-06-15 22:38:10 530

原创 C+/CLR/C# 十到十六进制文本

C++ char* Byte2Hex(unsigned char Byte) { char _s[] = { '0', '1', '2','3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; char* _ret = new char[0x2]; _ret[0x0] = _s[Byte /

2014-06-15 22:04:16 518

原创 C++/CLR ref class 属性定义

property 定义:不过我们

2014-06-15 21:36:13 5616

原创 C++/CLR ref class 中 int 类型的几种区别

其实我一直有个疑惑,为什么在C+

2014-06-15 20:14:03 1468

原创 C# 语法之美 Lambda 表达式

当委托只有一个参数时,可以这样写

2014-06-15 19:40:57 523

原创 C# 网页放大缩小(WebBrowser && AxWebBrowser)

Net / WebBrowser var HTMLDocument = webBrowser1.Document; HTMLDocument.Body.Style = "ZOOM:0.5"; // 缩小

2014-06-15 18:00:37 7918

原创 C# 遍历XML节点到TreeView

private void Form1_Load(object sender, EventArgs e) { this.SuspendLayout(); var treeView1 = new TreeView(); treeView1.Dock = DockStyle.Fill;

2014-06-15 17:26:44 947

原创 C# 寻找文件(FindNextFile)

[Serializable, StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto), BestFitMapping(false)] struct WIN32_FIND_DATA { public int dwFileAttributes; publi

2014-06-15 13:26:23 1172

原创 C# 模拟按键

最近发现个有趣的问题,我们如何向一个程序发送 按键指令?嗯,我稍微总结了下,大概有如下几种: 1:System.Windows.Forms.SendKeys.  Send / SendWait示例:     SendKeys.SendWait("^{A}"); // 模拟键:CTRL + A组合键:     Ctrl = ^     Shift = +    

2014-06-15 12:52:36 2483

原创 C# INI Profile 操作

using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace students{ public abstract class Profile { [DllImportAttribute("kern

2014-06-15 12:09:38 800

原创 C# XMLHTTP 读文件

本来想用API写的不过最后还是算了,

2014-06-14 19:02:06 1006

原创 C# 取字符串像素宽度

示列代码:

2014-06-14 18:10:38 1177

原创 C# 通过HWND获取IE的IWebBrowser2接口

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropService

2014-06-14 17:31:00 1956

原创 C# Net/Win32 内存操作

using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace std{ public partial class Memory : Object { [DllImportAttribute("k

2014-06-14 17:07:42 1023

原创 C# COM SAPI.SpVoice 对象类封装(微软娘TTS引擎)

我不是太喜欢说东西,直接贴代码

2014-06-14 16:29:23 4556

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除