2010年4月20日
摘要:
2.Reading Contents Of A Text File For reading the contents of a text file we use the OpenText Method of the File Class.The OpenText methods takes in the path of the file to be opened as an argument. I...
阅读全文
posted @ 2010-04-20 17:03
武胜-阿伟
阅读(301)
推荐(0)
2010年4月19日
摘要:
System.Drawing.Text.PrivateFontCollection colFont = new System.Drawing.Text.PrivateFontCollection();colFont.AddFontFile("test.ttf"); // mappath if you have to// new System.Drawing.Font(colFont.Familie...
阅读全文
posted @ 2010-04-19 17:31
武胜-阿伟
阅读(585)
推荐(0)
2010年4月16日
摘要:
所谓"绑架"就是把其他Win32程序的窗体嵌入到我们托管的WinForm中.网上已经用很多java版和Delphi版还有WPF的.我在这里补充 C#版的.定义需要的Win32 API [DllImport("user32.dll")]privatestaticexternintSetParent(IntPtrhWndChild,IntPtrhWndParent);[DllImport("user3...
阅读全文
posted @ 2010-04-16 09:08
武胜-阿伟
阅读(1036)
推荐(0)
2010年4月13日
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace WebCamera{ class showVideo { // showVideo calls [DllImport("avicap32.dll")] public static...
阅读全文
posted @ 2010-04-13 16:00
武胜-阿伟
阅读(1233)
推荐(0)
摘要:
AForge.NET is another C# framework to do image processing and others. For further information just go to http://www.aforgenet.com/framework/ Here, I want to show you another way to access your webcam...
阅读全文
posted @ 2010-04-13 15:12
武胜-阿伟
阅读(8047)
推荐(1)
摘要:
作者:王先荣前言 随着Windows操作系统的不断演变,用于捕获视频的API接口也在进化,微软提供了VFW、DirectShow和MediaFoundation这 三代接口。其中VFW早已被DirectShow取代,而最新的MediaFoundation被Windows Vista和Windows 7所支持。可惜的是,上述接口基于COM技术且灵活性很大,在.net中并不方便直接使用。.net封...
阅读全文
posted @ 2010-04-13 15:04
武胜-阿伟
阅读(2410)
推荐(4)
摘要:
Windows NT服务器热备份系统可以实现以下几个方面的功能: (1) 两台Windows NT Server被紧密集成在一个更加强壮的运行环境中,两台服务器采用多种心跳侦测方式实现运行状态监测; (2) 保证Windows NT交易实时备份;两台服务器采用共享磁盘阵列或硬盘镜像的方式保持数据库同步,保证数据库或应用系统实时同步,它能在主机故障发生时自动接管数据库或应 用系统的所有服务,保...
阅读全文
posted @ 2010-04-13 08:49
武胜-阿伟
阅读(574)
推荐(0)
摘要:
有关VLAN的技术标准IEEE802.1Q早在1999年6月份就由IEEE委员正式颁布实施了,而且最早的VLNA技术早在1996年 Cisco(思科)公司就提出 了。随着几年来的发展,VLAN技术得到广泛的支持,在大大小小的企业网络中广泛应用,成为当前最为热门的一种以太局域网技术。本篇就要 为大家介绍交换机的一个最常见技术应用--VLAN技术,并针对中、小局域网VLAN的网络配置以实例的方式向...
阅读全文
posted @ 2010-04-13 08:47
武胜-阿伟
阅读(1082)
推荐(0)
摘要:
本文的目的是全面介绍思科工程师多年积累的丰富经验和建议,帮助客户和现场工程师正确地在思科交换机上配置 VLAN 。除此以外,本文还将通过要点说明解释 @stake 测试的主要结果,阐述解决安全问题的方法。 基本安全准则 要想创建安全的交换网,必须先熟悉基本安全准则。需要特别注意的是, SAFE 最佳实践 [2] 中强调的基本准则是设计任何安全交换网的基石。 如果用户不希望任何设备受损,则必须严...
阅读全文
posted @ 2010-04-13 08:45
武胜-阿伟
阅读(475)
推荐(0)
2010年3月31日
摘要:
C# WndProc的使用方法 2008年11月03日 星期一 12:58 WndProc(ref Message m) protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMM...
阅读全文
posted @ 2010-03-31 09:11
武胜-阿伟
阅读(8916)
推荐(0)