delphi Types of actual and formal var parameters must be identical


本文整理自网络,侵删。

 
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。

相关阅读 >>

Delphi fmx jpg 保存数据库 从数据库读取

Delphi 自动升级组件autoupgrader简单教程

Delphi实现类似嵌入桌面的效果

Delphi goto 语句的使用

Delphi xe7组件tetheringmanager1发送消息

Delphi rest application 与 webbroker application 区别

Delphi idhttp代理设置

Delphi启动控制面板的方法列表

Delphi 如何使用findfirst搜索不同的文件类型?

Delphi格式化输出函数

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...