【发布时间】:2016-06-28 04:36:00
【问题描述】:
我需要编译 Inno Media Player 0.03 的源代码,我使用 Delphi 对其进行了修改以添加光标隐藏功能。
我成功将代码添加到源代码并尝试重新编译但编译器显示:
[dcc32 错误] MainUnit.pas(154): E2010 不兼容的类型:'LongBool' 和 'Integer'。
这段代码有什么问题?
我添加到INNO MEDIA PLAYER的代码:
const
OATRUE = -1;
procedure TDirectShowPlayer.InitializeVideoWindow(WindowHandle: HWND; var Width,
Height: Integer);
begin
ErrorCheck(FGraphBuilder.QueryInterface(IVideoWindow, FVideoWindow));
ErrorCheck(FVideoWindow.HideCursor(OATRUE)); **<<<ERROR IS HERE<<<**
...
end;
我在TDirectShowPlayer.InitializeVideoWindow中的FVideoWindow上调用了IVideoWindow::HideCursor方法。
OATRUE 常量是 System.Shortint,IVideoWindow.HideCursor 是 LongBool 方法。
是这些不兼容的类型还是我的 Delphi 版本与我添加的代码不兼容?
【问题讨论】:
标签: delphi