摘要: http://tech.techweb.com.cn/thread-246681-1-5.html 阅读全文
posted @ 2009-10-16 16:28 vhtt 阅读(397) 评论(0) 推荐(0)
摘要: 发表于 2009-5-17 17:40C#必备知识之预编译指令   预编译又称为预处理,是做些代码文本的替换工作。处理#开头的指令,比如拷贝#include包含的文件代码,#define宏定义的替换,条件编译等,就是为编译做的预备工作的阶段,主要处理#开始的预编译指令。 下面对C#中的预编译指令进行介绍: 1.#define和#undef 用法: #define DEBUG #undef DEBU... 阅读全文
posted @ 2009-10-16 16:24 vhtt 阅读(329) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/vhtt/服务器用来接收文件,不停的监听端口,有发送文件就马上开始接收文件服务端代码:C#代码 usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Text... 阅读全文
posted @ 2009-10-16 16:00 vhtt 阅读(2760) 评论(0) 推荐(0)
摘要: MessageQueue学习总结具体的理论这里就不说了。主要说一下做的例子。本例子主要是发送不同的消息。然后根所ID得到指定的消息内容。方法:  1、在专用队列增加一个专用队列"Demo"。所有选项为默认即可。  2、发送消息。输入消息的ID,输入消息的内容发送消息。  3、输入被接收消息的ID,根据此ID找到消息后查看其内容。消息ID设置方法:  消息中没有ID这个选项。所以不知如何把消息发送给... 阅读全文
posted @ 2009-10-15 11:48 vhtt 阅读(3493) 评论(1) 推荐(1)
摘要: 1.现在女人真伟大。不知不觉肚子大、有了孩子没有爸!2.小时候我们把玩具当朋友、长大了朋友拿我们当玩具。3.你不能让所有的人满意,因为不一定所有的都是人。4.人生就象卫生纸、没事尽量少扯、!5.有老公怎么的? 有守门员球还进呢!6.谁是谁老公? 都他妈临时工!7.如果你看到面前的阴影,别怕,那是因为你的背后有阳光!8.踏遍青楼人未老,请用汇仁肾宝9.最穷无非讨饭、不死终会出头10.时间是最好的老师... 阅读全文
posted @ 2009-10-14 16:01 vhtt 阅读(334) 评论(0) 推荐(0)
摘要: 有关“字节序”的描述收藏BIG-ENDIAN(大字节序、高字节序)LITTLE-ENDIAN(小字节序、低字节序)主机字节序网络字节顺序JAVA字节序1.BIG-ENDIAN、LITTLE-ENDIAN跟多字节类型的数据有关的比如int,short,long型,而对单字节数据byte却没有影 响。BIG-ENDIAN就是低位字节排放在内存的低端,高位字节排放在内存的高端。而... 阅读全文
posted @ 2009-10-10 15:39 vhtt 阅读(1679) 评论(0) 推荐(0)
摘要: C# 类型 byte,int,short,long,decimal,double,floatusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCSType{publicclassmyInt{publicmyInt(){//byte类型从0->255。bytexb=1;/... 阅读全文
posted @ 2009-10-07 00:48 vhtt 阅读(1426) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/vhtt/ 阅读全文
posted @ 2009-09-26 22:48 vhtt 阅读(136) 评论(0) 推荐(0)
摘要: C#共享内存操作类实例: usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Runtime.InteropServices; namespaceShareMemLib { publicclassShareMem { [DllImport("user32.dll",CharSet=CharSet.A... 阅读全文
posted @ 2009-09-17 22:08 vhtt 阅读(2917) 评论(3) 推荐(0)
摘要: ASCII码对照表下表列出了字符集中的 0 - 127。 代码字符代码字符代码字符代码字符 0 32 [空格] 64 @ 96 ` 1 33 ! 65 A 97 a 2 34 " 66 B 98 b 3 35 # 67 C 99 c 4 36 $ 68 D 100 d 5 37 % 69 E 101 e 6 38 & 70 F 102 f 7 39 ' 71 G 103 g 8 ** 40... 阅读全文
posted @ 2009-09-16 21:29 vhtt 阅读(3124) 评论(0) 推荐(0)