如何判断一个动态库正在被使用中
解决方案 »
- 窗体关闭时出现 project ***.exe raised exception class exception with message 'prdupl'?
- 怎样替换系统中超长的文本!
- DevExpress控件包dx升级到cx,原有程序中使用的dx控件如何升级,及cxGrid使用疑问
- 问一个问题: DBGridEHLIB 中的DBGrid ,有多选行功能,如何在此基础之上,通过CTRL+MouseLeft,实现 同列的多个不相连的 单元格的多选
- 何处有TdxDBGrid什么控件下载的地址?
- 刚开始弄,求一个在画图的算法!
- 挑战高手的问题。
- Delphi中有关饼图(Chart)的问题
- 如何简单的实现禁止局域网某个ip地址的用户上网?十万火急
- Delphi5无法安装问题
- 高价购买验证码识别系统
- 如何让程序未进入系统就先运行啊....
var
hFile:Handle;
begin
Result:=false;
if not FileExists(FileName) then Exit; hFile=CreateFile(Pchar(FileName),
GENERIC_READ or GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
0);
Result:=hFile=-1;
if not Result then CloseHandle(hFile);
End;
var
hFile:Thandle;
begin
Result:=false;
if not FileExists(FileName) then Exit; hFile:=CreateFile(Pchar(FileName),
GENERIC_READ or GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
0);
Result:=hFile=-1;
if not Result then CloseHandle(hFile);
End;