论坛


2009年2月16日 星期一

多线程编程(15) - 多线程同步之 WaitableTimer (等待定时器对象)[续]

万一| 万一的 Delphi 博客 |22:58:00

本次专门研究下 SetWaitableTimer 的第二个参数(起始时间).它有正值、负值、0值三种情况, 前面已用过 0值.先学习负值(相对时间), 也就是从当前算起隔多长时间开始执行.这个相对时间是已 1/100 纳秒为单位的, 譬如赋值 3*10000000 相当于 3 秒.1 s(秒) = 1,000 ...

多线程编程(14) - 多线程同步之 WaitableTimer (等待定时器对象)

万一| 万一的 Delphi 博客 |22:18:00

function CreateWaitableTimer( lpTimerAttributes: PSecurityAttributes; {安全} bManualReset: BOOL; {True: 可调度多个线程; False: 只调度一个线程} lpTimerName: PWideChar {名称} ): THandle; stdcall; {返回句柄} function SetWaitableTimer( ...

判断窗口是自动还是手动弹出

rarnu| 橙子的Delphi技术专区-delphi |17:29:00

在WebBrowser控件内,要判断一个窗口是自动还是手动弹出的,用常规方法是有一些困难的从msdn上查到,有一个DWebBrowserEvents2接口可以实现此功能,参考此处http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx由此文档,轻松的实现一个Delphi的DWebBrows...

ProDelphi 23.5 - Profiler for Delphi 2009

CodeGear| CodeGear-CodeCentral Delphi |06:33:39

ProDelphi is a source instrumenting profiler.Unlike sampling profilers ProDelphi supplies exact measurement results for ALL procedures and not only for those which are executed at snap shot time.Features:Built-in viewer,Caller - Called graph,Cycli...

Extend Delphi Components Without the Need to Install in the IDE; TButton = class(TButton)

About.com| About.com Delphi Programming |03:02:28

in Delphi TIPS :: Have you ever needed for a specific Delphi control, like a TButton, to have just one more property or a method that is a "must have"...

多线程编程(13) - 多线程同步之 Event (事件对象)

万一| 万一的 Delphi 博客 |00:28:00

据说 Event(事件对象) 是多线程最原始的同步手段, 我觉得它是最灵活的一个.Event 对象(的句柄表)中主要有两个布尔变量, 从它的建立函数中可以看得清楚:function CreateEvent( lpEventAttributes: PSecurityAttributes; {安全设置} bManualReset: BOOL; ...