首页 > 编程 > C++ > 正文

如何将C/C++程序转译成Delphi(十五)

2019-11-18 18:50:02
字体:
来源:转载
供稿:网友

8. The Jedi Common Support Unit

unit JediUtil;{==========================================================}{ Jedi Common Support Unit                                 }{==========================================================}interfaceUSES WinTypes,     WinPRocs;{----------------------------------------------------------}{ Function JediCheckInstanceHandle                         }{                                                          }{ Parameter:                                               }{                                                          }{   hInst: Instance Handle                                 }{                                                          }{ Returns-Value:                                           }{   TRUE if the handle is valid, FALSE if not              }{----------------------------------------------------------}Function JediCheckInstanceHandle (hInst: THandle): Boolean;implementationFunction JediCheckInstanceHandle (hInst: THandle): Boolean;begin  {$IFNDEF WIN32}  Result := hInst > HINSTANCE_ERROR;  {$ELSE}  Result := hInst <> 0;  {$ENDIF}end;end.终于贴完了!!

上一篇:如何将C/C++程序转译成Delphi(十四)

下一篇:如何将C/C++程序转译成Delphi(十三)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
学习交流
热门图片

新闻热点

疑难解答

图片精选

网友关注