还有个问题就是哪有delphi7的中文帮助啊?非常感谢!
解决方案 »
- Delphi的Tchart组件在那里?
- 230分了, 如何使用ODAC???(我再次申请了一个号,三个号加在一起落230了,只要问题解决就请在三个问题中发言,分就全给)
- 有什麼快的辦法在一批文件的文件名的第二位加一個0,高分賜教
- 问一个搜索后字符串选中的问题。
- 我没分了,大家交流不是只看分的!!我打算学delphi不过……
- unsigned char * 和 object pascal 中的什么是等价的?pchar 是无符号的么?
- 求寻!
- 请问正版delphi6在局域网内是不是只能装一台机器
- 关于滚动条的问题!(一定给分)
- 请教高手!!!如何在报表中加入网格??
- 特大新闻!火星发现生命了!
- 如何在PixelFormat=pf1bit的Bitmap中正常显示文字?
var
hMutex: THandle;
begin
Result := False; // Check whether another instance of the same exe is already running.
// If is, restore its main form and exit.
hMutex := OpenMutex(MUTEX_ALL_ACCESS, False, sPP_APP_MUTEX);
if hMutex <> 0 then
begin
// If hMutex <> 0, another instance of the same app is running. So shut
// down the current instance and inform the other one to restore itself.
// Don't forget to close handle when it is no longer required.
CloseHandle(hMutex);
RestoreMainForm;
Exit;
end; // OK, this is the first instance, so create a new mutex to prevent multiple
// instances of the same BC.
hMutex := CreateMutex(nil, False, sPP_APP_MUTEX);
if hMutex = 0 then
RaiseLastWin32Error; Result := True;
end;