How to translate the CC ++ program into Delphi (fifteen)

zhaozj2021-02-17  53

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.

I finally passed it! !

转载请注明原文地址:https://www.9cbs.com/read-30415.html

New Post(0)