如何将C/C++程序转译成Delphi(十五)
2001-07-24 13:45
375 查看
8. The Jedi Common Support Unit unit JediUtil;
{==========================================================}
{ Jedi Common Support Unit }
{==========================================================}
interface
USES WinTypes,
WinProcs;
{----------------------------------------------------------}
{ Function JediCheckInstanceHandle }
{ }
{ Parameter: }
{ }
{ hInst: Instance Handle }
{ }
{ Returns-Value: }
{ TRUE if the handle is valid, FALSE if not }
{----------------------------------------------------------}
Function JediCheckInstanceHandle (hInst: THandle): Boolean;
implementation
Function JediCheckInstanceHandle (hInst: THandle): Boolean;
begin
{$IFNDEF WIN32}
Result := hInst > HINSTANCE_ERROR;
{$ELSE}
Result := hInst <> 0;
{$ENDIF}
end;
end.
{==========================================================}
{ Jedi Common Support Unit }
{==========================================================}
interface
USES WinTypes,
WinProcs;
{----------------------------------------------------------}
{ Function JediCheckInstanceHandle }
{ }
{ Parameter: }
{ }
{ hInst: Instance Handle }
{ }
{ Returns-Value: }
{ TRUE if the handle is valid, FALSE if not }
{----------------------------------------------------------}
Function JediCheckInstanceHandle (hInst: THandle): Boolean;
implementation
Function JediCheckInstanceHandle (hInst: THandle): Boolean;
begin
{$IFNDEF WIN32}
Result := hInst > HINSTANCE_ERROR;
{$ELSE}
Result := hInst <> 0;
{$ENDIF}
end;
end.
相关文章推荐
- 如何将C/C++程序转译成Delphi(九)
- 如何将C/C++程序转译成Delphi(十)
- 如何将C/C++程序转译成Delphi(十一)
- 如何将C/C++程序转译成Delphi(十二)
- 如何将C/C++程序转译成Delphi(十三)
- 如何将C/C++程序转译成Delphi(十四)
- 如何将C/C++程序转译成Delphi
- 如何将C/C++程序转译成Delphi(二)
- 如何将C/C++程序转译成Delphi(三)
- 如何将C/C++程序转译成Delphi(五)
- 如何将C/C++程序转译成Delphi(五)
- C++ 程序如何转成 delphi
- 如何将C/C++程序转译成Delphi(四)
- 如何将C/C++程序转译成Delphi(六)
- 如何将C/C++程序转译成Delphi(七)
- 如何将C/C++程序转译成Delphi
- 如何将C/C++程序转译成Delphi(八)
- 如何将C/C++程序转译成Delphi(三)
- ubuntu下C++如何调用python程序,gdb调试C++代码
- 如何运行C++ STL程序