调用API函数数据类型问题(100分)

  • 主题发起人 主题发起人 ghd
  • 开始时间 开始时间
Pchar相当于“字符串”类型<br>LongInt相当于“整型”
 
API函数如果用到字符串一般要用pchar函数转换.<br>比如 CopyFile(pchar(c:/s.txt),pchar(d:/d.txt),true);
 
说一下 Windows 下的常用数据类型:<br>windows &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Pascal<br>--------------------------------<br>BYTE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Byte<br>WORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Word<br>LONG/INT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Longint/Integer<br>DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Longword/Cardinal<br>double &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Double<br>QWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Int64<br>char &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Char<br>char*/LPSTR &nbsp; &nbsp; &nbsp; &nbsp; PChar &nbsp; &nbsp; &nbsp; &nbsp;<br>POINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TPoint<br>LPPOINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^TPoint<br>RECT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TRect<br>....<br><br>哦,太多,太多,Windows.pas 中有定义,直接看看就行了。
 
不用这么复杂吧??写完函数后稍过一会DELPHI会自动出现该函数的帮助呀??<br>如:<br>MOUSE_EVEN(<br>只要等一会就行了!!
 
请说明哪一个类型无法转换!
 
那是你已经声明或delphi已经帮你声明过的函数,不然的话,没有提示的
 
后退
顶部