01 2005 档案

摘要:http://blog.csdn.net/mtybeen/archive/2005/01/13/251195.aspx一条猎狗将兔子赶出了窝,一直追赶他,追了很久仍没有捉到。牧羊看到此种情景,讥笑猎狗说"你们两个之间小的反而跑得快得多。"猎狗回答说:"你不知道我们两个的跑是完全不同的!我仅仅为了一顿饭而跑,他却是为了性命而跑呀!"....目标....二这话被猎人听到了,猎人想:猎狗说的对啊,那我要想得到更多的猎物,得想个好法子.于是,猎人又买来几条猎狗,凡是能够在打猎中捉到兔子的,就可以得到几根骨头,捉不到的就没有饭吃.这一招果然有用,猎狗们纷纷去努力追 阅读全文
posted @ 2005-01-21 10:57 greystar 阅读(105) 评论(0) 推荐(0)
摘要:/*微软最高机密——Windows 98 源代码 项目:Chicago(tm) 项目发行日期:1998年夏天*/ #include "win31.h" #include "win95.h" #include "evenmore.h" #include "oldstuff.h" #include "billrulz.h" #define INSTALL = HARD char make_prog_look_big[1600000]; /*使程序看起来很大*/ void main() { while 阅读全文
posted @ 2005-01-18 16:07 greystar 阅读(592) 评论(0) 推荐(0)
摘要:计划任务描述将记事本计划为每星期一、星期三和星期五下午 12:30 运行。脚本代码strComputer = "."Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!//" & strComputer & "/root/cimv2")Set objNewJob = objWMIService.Get("Win32_ScheduledJob")errJobCreat 阅读全文
posted @ 2005-01-18 15:44 greystar 阅读(227) 评论(0) 推荐(0)
摘要:<script language="VBScript">dim hkey_root,hkey_path,hkey_keyhkey_root="HKEY_CURRENT_USER"hkey_path="/Software/Microsoft/Internet Explorer/PageSetup"'//设置网页打印的页眉页脚为空function pagesetup_null()on error resume nextSet RegWsh = CreateObject("WScript.Shell" 阅读全文
posted @ 2005-01-18 14:36 greystar 阅读(254) 评论(0) 推荐(0)
摘要:使用DirectX技术实现播放,需要引用系统的 C:/WINNT/system32/quartz.dll是从CodeProject上看来的。前一阵看到有人需要这样的代码,所以贴出来共享一下。using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data;using System.Windows.Forms;using QuartzTypeLib;namespace Greystar.FrameWork.ToolKits{/// <summary 阅读全文
posted @ 2005-01-17 13:36 greystar 阅读(404) 评论(0) 推荐(0)
摘要:using System;using System.Web.UI;using System.Web.UI.WebControls;using System.ComponentModel;using System.Collections.Specialized;namespace MyWebControls{/// <summary>/// 创建一个派生于WEBCONTROL的类/// 实现一个公有构造函数,它将调用基类构造函数来指定服务器控件应该输出一个input元素/// 重写AddAttributesToRender方法,调用该方法是为了允许派生类为根元素input 添加属性/ 阅读全文
posted @ 2005-01-14 16:27 greystar 阅读(151) 评论(0) 推荐(0)
摘要:介绍微软一个罕为人知的无敌命令 介绍微软一个罕为人知的无敌命令问:怎么才能关掉一个用任务管理器关不了的进程?我前段时间发现我的机子里多了一个进程,只要开机就在,我用任务管理器却怎么关也关不了 答1:杀进程很容易,随便找个工具都行。比如IceSword。关键是找到这个进程的启动方式,不然下次重启它又出来了。顺便教大家一招狠的。其实用Windows自带的工具就能杀大部分进程: c:/>ntsd -c q -p PID 只有System、SMSS.EXE和CSRSS.EXE不能杀。前两个是纯内核态的,最后那个是Win32子系统,ntsd本身需要它。ntsd从2000开始就是系统自带的用户... 阅读全文
posted @ 2005-01-10 15:10 greystar 阅读(148) 评论(0) 推荐(0)
摘要:前一阵,从国外网站看到一个用C#来操作串口的类。下载下来试了一下,觉得不错。共享一下。/* * Author: Marcus Lorentzon, 2001 * d98malor@dtek.chalmers.se * * Freeware: Please do not remove this header * * File: SerialStream.cs * * Description: Implements a Stream for asynchronous * transfers and COMM. Stream version. * * Version: 2.4 * */#re... 阅读全文
posted @ 2005-01-06 12:49 greystar 阅读(325) 评论(0) 推荐(0)
摘要:在开发自定义的WEB控件时,有时我们想让自定义控件实现自动回传的功能。通常只有BUTTON这样的控件才能实现此功能。如果想实现的话,只要让我们的自定义控件实现IPostBackEventHandler接口就可以了,同时给控件加上事件引发的代码调用。using System;using System.Web.UI;using System.Web.UI.WebControls;using System.ComponentModel;namespace MyWebControls{/// <summary>/// MyCounter 的摘要说明。/// </summary> 阅读全文
posted @ 2005-01-06 09:48 greystar 阅读(296) 评论(0) 推荐(0)
摘要:VB本身是不支持多线程的。但是VB中的部件有进程内及进程外的区分,因此这里我使用进程外部件来实现异步调用。服务器端代码,新建一个ActiveEXE工程,加入一个窗体,窗体中存放一个Timer控件添加一个类模块。代码如下Private WithEvents m_Timer As TimerPublic Event MyTaskResult(result As Long)Private j As LongPrivate Sub Class_Initialize() Set m_Timer = Form1.Timer1End SubPrivate Sub m_Timer_Timer() m_Time 阅读全文
posted @ 2005-01-04 11:11 greystar 阅读(1942) 评论(0) 推荐(0)