如果限制一个程序同时只能启动一个实例,有几个可以使用的库 QtSingleApplication 以前可以免费使用,后来只有商业版能里能用,在 Github 上也有一个 LGPL 协议的实现,地址为https://github.com/qtproject/qt-solutions/tree/mast Read More
posted @ 2015-11-14 22:22 findumars Views(861) Comments(0) Diggs(0)
先勾画一下思路:1、建立一个类, 里面有年龄字段 FAge;2、通过 Age 属性读写 FAge;3、如果输入的年龄刚好是 100 岁, 将会激发一个事件, 这个事件我们给它命名为: OnHundredunit Unit1;interfaceuses Windows, Messages, SysU... Read More
posted @ 2015-11-14 18:54 findumars Views(565) Comments(0) Diggs(0)
刚开始代码如下:procedure TForm1.Button1Click(Sender: TObject);var Panel: TPanel;begin Panel := TPanel.Create(Form1); Panel.Name := 'pnlPreVideo'; Panel.P... Read More
posted @ 2015-11-14 18:44 findumars Views(729) Comments(0) Diggs(0)
uses shlobj; type WELL_KNOWN_SID_TYPE = ( WinNullSid, WinWorldSid, WinLocalSid, WinCreatorOwnerSid, WinCreatorGroupSid, WinCreatorOwnerServerSid, WinC... Read More
posted @ 2015-11-14 18:42 findumars Views(1287) Comments(0) Diggs(0)
//在一个exe文件中查找指定内容,找到则返回起始位置, 否则返回0//如果某字符串, 直接传入字符串进来//如果要查找16进制,则用如下格式传参进来: #$1A#$2A#$3Afunction FindString(FileName, FindStr: string): Int64;var Fi... Read More
posted @ 2015-11-14 18:41 findumars Views(487) Comments(0) Diggs(0)
DeleteUrlCacheEntry 1.文件单元:WinInt VC声明 BOOL DeleteUrlCacheEntry ( LPCTSTR lpszUrlName); 函数功能 删除Cache中指定的源文件名,如果指定文件存在 则删除 参数说明 lpszUrlNam... Read More
posted @ 2015-11-14 18:39 findumars Views(382) Comments(0) Diggs(0)
var AWinControl:TPageControl;begin AWinControl := PageControl1; if frmAbout = nil then Exit; frmAbout.ManualDock(AWinControl, nil, alClient);... Read More
posted @ 2015-11-14 18:38 findumars Views(584) Comments(0) Diggs(0)
function StopTime: integer; //返回没有键盘和鼠标事件的时间var LInput: TLastInputInfo;begin LInput.cbSize := SizeOf(TLastInputInfo); GetLastInputInfo(LInput); Re... Read More
posted @ 2015-11-14 18:37 findumars Views(385) Comments(0) Diggs(0)
unit FileDownLoadThread;interfaceuses Classes, SysUtils, Windows, ActiveX, UrlMon;const S_ABORT = HRESULT($80004004);type TFileDownLoadThread =... Read More
posted @ 2015-11-14 18:36 findumars Views(1104) Comments(0) Diggs(0)
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) ... Read More
posted @ 2015-11-14 18:33 findumars Views(1231) Comments(0) Diggs(0)
非本人作也!因非常经典,所以收归旗下,与众人阅之!原作者不祥!堆和栈的区别一、预备知识—程序的内存分配一个由c/C++编译的程序占用的内存分为以下几个部分1、栈区(stack)—由编译器自动分配释放,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。2、堆区(heap)—一般由程序员... Read More
posted @ 2015-11-14 18:32 findumars Views(243) Comments(0) Diggs(0)
dddd Read More
posted @ 2015-11-14 18:28 findumars Views(162) Comments(0) Diggs(0)
http://www.cnblogs.com/jxgxy/category/216671.html Read More
posted @ 2015-11-14 18:25 findumars Views(341) Comments(0) Diggs(0)