随笔分类 -  软件开发:Windows系统

摘要:{功能描述:T40S作者:天地狂虫日期:2007年11月23日}unit OMRAPI;interfaceuses SysUtils,Windows;type //光标阅读机通讯端口类型 TOmrPortType=(OPTCOM,OPTUSB); //光标阅读机接口函数声明 TOmrOpenUSB=function():Integer;stdcall; TOmrOpenComm=function(... 阅读全文
posted @ 2010-02-06 01:57 Max Woods 阅读(1816) 评论(0) 推荐(0)
摘要:抛弃Windows的默认图标吧,让自己的程序所在的目录拥有个性化的Folder Icon!其实作起来简单得很,实际上只需要一个Desktop.ini文件即可,下面我会从两个方面说明。1. 手动方式:首先要在需要改变的文件夹中创建一个Desktop.ini文件,例子如下[.ShellClassInfo]ConfirmFileOp=0InfoTip=我自己的文件夹IconIndex=0IconFile... 阅读全文
posted @ 2010-02-01 21:34 Max Woods 阅读(532) 评论(0) 推荐(0)
摘要:整个系统文件夹的图标被恶意程序修改,打开任何文件夹都会在左上角出现一个被替换的默认图标,真是令人头痛,最后找到如下解决方案。1、如果要更改单个文件夹的图标,可采用如下方法:通常的办法是在你要更换的目录下用记事本新建一个Desktop.ini,写入下边几行:  [.ShellClassInfo]  InfoTip=  IconFile=  IconIndex=  InfoTip后边可以写入文件夹提示... 阅读全文
posted @ 2010-02-01 21:27 Max Woods 阅读(837) 评论(0) 推荐(0)
摘要:constExtendedVKeys : set of byte = [VK_Up,VK_Down,VK_Left,VK_Right,VK_Home,VK_End,VK_Prior, {Pg Up} VK_Next, {PgDn}VK_Insert,VK_Delete]; //////////////////////发送按键procedure SendCardNo(CardNo:String);v... 阅读全文
posted @ 2009-11-27 18:24 Max Woods 阅读(1194) 评论(0) 推荐(0)
摘要:OLE自动化的控制方有时要从受控方接收事件通知。比如WebBrowser的OnNavagiteComplete,OnDocumentComplete等事件。OLE对象需要实现IConnectionPointContainer接口。IConnectionPointContainer和其它几个跟自动化事件相关的接口定义如下: IEnumConnections = interface ['{B... 阅读全文
posted @ 2009-01-07 15:06 Max Woods 阅读(2702) 评论(0) 推荐(0)
摘要:以前一直在 WIN XP /2003 下编程,现在有客户使用 VISTA 系统,运行程序的时候报错。我的程序用到了注册表,还是对 HKLM 进行读写,VISTA 的安全机制肯定是不让了,别人的软件在遇到这个问题的时候都有一个 WINDOWS 的安全提示,询问是否以管理员身份运行,我的程序就什么提示都没有,直接报错。后来在网上查到了解决办法,让我的程序也支持 VISTA 了。 操作步骤: 1.建立 ... 阅读全文
posted @ 2008-11-29 04:15 Max Woods 阅读(461) 评论(1) 推荐(0)
摘要:今天一直到晚上4点才可以上网,晕死偌大的一个科教城,怎么就那么不济呢,,呵呵没有bs 的意思的饿。 今天不能上网只能将以前的资料整理下上次说学习 hook的,还是有点看不太懂,但是貌似我的工作又向前面进了一步了。下面是我在网络上找到的一个代码段。我直接将它用在我的程序里面,然后直接调用,我的神啊,看了一个上午只看出一个大概,感觉还可以。 using System; using System.Col... 阅读全文
posted @ 2008-11-21 21:24 Max Woods 阅读(783) 评论(0) 推荐(0)
摘要:Problem/Question/Abstract: Delphi 5&6 has a template project for services, but it is incomplete. This example builds on that template and completes the service. It also shows how to start a thread t... 阅读全文
posted @ 2008-10-18 16:32 Max Woods 阅读(897) 评论(0) 推荐(0)
摘要:Demo Code Demo code to accompany this article is available for download (see below). The demo includes the following: Two applications – WBUIArtDemo1.exe and WBUIArtDemo2.exe – that include Del... 阅读全文
posted @ 2008-10-15 10:24 Max Woods 阅读(376) 评论(0) 推荐(0)
摘要:Exercising the code – a sample application One of the problems that motivated this exploration was my need to use a TWebBrowser to display some HTML in a dialog box. The HTML needed to look and behav... 阅读全文
posted @ 2008-10-15 10:23 Max Woods 阅读(413) 评论(0) 推荐(0)
摘要:Developing the customization class As we decided above, TWBContainer will derive from TNulWBContainer and add all the required browser customization. Let us review what we want this customization to ... 阅读全文
posted @ 2008-10-15 10:22 Max Woods 阅读(473) 评论(0) 推荐(0)
摘要:Developing a reusable base class Recall that this class, TNulWBContainer, will have all the features of a suitable container that hosts TWebBrowser. It will: Implement IOleClientSite. Imple... 阅读全文
posted @ 2008-10-15 10:21 Max Woods 阅读(503) 评论(0) 推荐(0)
摘要:Overview of a solution Let us assess what are trying to do. We will work towards creating an object that can customize the TWebBrowser control's appearance and take control of its context menu. In th... 阅读全文
posted @ 2008-10-15 10:20 Max Woods 阅读(381) 评论(0) 推荐(0)
摘要:Contents Introduction Overview of a solution Developing a reusable base class Getting started Implementing a non reference counted object Implementing IOleCl... 阅读全文
posted @ 2008-10-15 10:19 Max Woods 阅读(495) 评论(0) 推荐(0)
摘要:前言 DirectShow是微软公司提供的一套在Windows平台上进行流媒体处理的开发包,与DirectX开发包一起发布。DirectShow为多媒体流的捕捉和回放提供了强有力的支持。用DirectShow开发应用程序,我们可以很方便地从支持WDM驱动模型的采集卡上捕获数据,并且进行相应的后期处理乃至存储到文件中。 DirectShow是基于COM的,为了编写DirectShow应用程序... 阅读全文
posted @ 2008-10-07 16:07 Max Woods 阅读(2586) 评论(0) 推荐(0)
摘要:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,shlobj, ExtCtrls, {TFlatButtonUnit,TFlatPanelUnit,TFlatTitlebarUnit,} ... 阅读全文
posted @ 2008-10-06 16:30 Max Woods 阅读(3121) 评论(3) 推荐(0)
摘要:前 言 视频捕获是指由专用的视频采集卡捕获声频和视频信息,然后将其进行数据化处理,再经过软件的压缩进行处理,这时就可对这些数据进行保存、回放、传输等各种操作。 Windows专门提供了Video for Windows来对视频处理进行支持,提供的接口可以被大多数的视频采集卡支持,并有多种视频压缩驱动供选择(当然视频压缩可以自己开发),采集卡支持摄像头,TV等多种输入。 一. 视频捕获快速入... 阅读全文
posted @ 2008-10-06 16:09 Max Woods 阅读(728) 评论(0) 推荐(0)
摘要:对于小摄像头的驱动有几种方法,通过使用DirectShow来驱动摄像头灵活性比较好,有简单的方法也有比较复杂但更有效的方法,本文只介绍简单方法,希望与大家交流! 用DirectShow来使用摄像头,一般要求摄像头的驱动是WDM格式的,当然,一些比较老的驱动格式DirectShow也可支持。DirectShow通过图形过滤管理器(Filter Graph Manager)来与上层应用程序和... 阅读全文
posted @ 2008-10-06 14:20 Max Woods 阅读(960) 评论(0) 推荐(0)
摘要:var CreateDevEnum:ICreateDevEnum; EnumMoniker:IEnumMoniker; Moniker:IMoniker; PropertyBag:IPropertyBag; varName:OleVariant; hr:HRESULT; const IID_IPropertyBag: TGUID = '{55272A00-42CB-11... 阅读全文
posted @ 2008-09-27 15:17 Max Woods 阅读(857) 评论(0) 推荐(0)
摘要:第一部分:背景知识 DirectShow是微软公司提供的一套在Windows平台上进行流媒体处理的开发包,与DirectX开发包一起发布。它经过DirectX 6.0中的DirectX Media发展而来,集成了DirectX家族中的其他成员(DirectDraw、DirectSound等),可以说是一位“集大成者”。 DirectShow能做些什么? DirectShow为多媒体流的捕捉和回放... 阅读全文
posted @ 2008-09-26 21:42 Max Woods 阅读(1010) 评论(0) 推荐(0)