IDE编译成功,但dcc32写道:错误:E2010不兼容类型:'Integer'和'NativeInt'

Dmi*_*try 6 delphi compiler-errors dcc32 delphi-xe2

Delphi XE2 Update 3 IDE成功编译项目,但dcc32.exe写道:

Embarcadero Delphi for Win32 compiler version 22.0
Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
ehshelprouter.pas(137) Error: E2010 Incompatible types: 'Integer' and 'NativeInt'
ehs_reg.pas(68) Fatal: F2063 Could not compile used unit 'ehshelprouter.pas'
Run Code Online (Sandbox Code Playgroud)

为什么?第137行是:

Application.OnHelp := OnRouteHelp; // function OnRouteHelp(Command: Word; Data: NativeInt; var CallHelp: Boolean): Boolean;
Run Code Online (Sandbox Code Playgroud)

谢谢您的帮助!

Vil*_*nde 1

您错误地使用了较旧的 dcc32.exe(也许是 Delphi XE?)。检查您的 PATH 设置或在编译中提供 XE2 dcc32.exe 的完整路径。XE2应该显示这个版本信息:

Embarcadero Delphi Win32 编译器版本 23.0