RSS订阅 | 匿名投稿
您的位置:网站首页 > 函数 > 正文

delphi Types of actual and formal var parameters must be identical

作者:admin 来源: 日期:2018/1/16 17:51:31 人气: 标签:

delphi XE Berlin ReadProcessMemory WriteProcessMemory

delphi  XE,Berlin

[dcc32 Error] Unit9.pas(93): E2033 Types of actual and formal var parameters must be identical  形参 实参

function ReadProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; lpBuffer: Pointer;
  nSize: SIZE_T; var lpNumberOfBytesRead: SIZE_T): BOOL; stdcall;
{$EXTERNALSYM ReadProcessMemory}
function WriteProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; lpBuffer: Pointer;
  nSize: SIZE_T; var lpNumberOfBytesWritten: SIZE_T): BOOL; stdcall;
 

lpNumberOfBytesRead: SIZE_T用dwBytesWriten: THandle;类型就可以了。
SIZE_T,即NativeUInt。

读完这篇文章后,您心情如何?
0
0
0
0
0
0
0
0
本文网址:
下一篇:没有资料