一个简单的问题 当API函数和DELPHI封装的函数同名时,如调用API函数?(100分)

  • 主题发起人 主题发起人 g_feng
  • 开始时间 开始时间
G

g_feng

Unregistered / Unconfirmed
GUEST, unregistred user!
最近使用API函数BOOL ClientToScreen(<br>&nbsp; &nbsp; HWND hWnd, // window handle for source coordinates <br>&nbsp; &nbsp; LPPOINT lpPoint // pointer to structure containing screen coordinates &nbsp;<br>&nbsp; &nbsp;);<br>时delphi总是调用function ClientToScreen(const Point: TPoint): TPoint;<br>我应该如何才能使用API函数??请各位大虾指教
 
Windows.ClientToScreen(....,...)
 
相同名字的API,肯定是同一个API,你可以用API原形调用,也可以用DELPHI定义的来用,<br>注意参数的意义就可以了。如果用WINAPI调用,后面跟上External+'你调用的DL名字',这样<br>DELPHI就会直接调用了,不会去找自己定义的!!
 
后退
顶部