我正在编译 MadRes,但错误是这样的:
Checking project dependencies...
Compiling Project1.dproj (Debug configuration)
[DCC Warning] madRes.pas(351): W1057 Implicit string cast from 'AnsiString' to 'string'
[DCC Warning] madRes.pas(351): W1057 Implicit string cast from 'AnsiString' to 'string'
[DCC Error] madRes.pas(519): E2010 Incompatible types: 'Char' and 'AnsiChar'
[DCC Fatal Error] Unit1.pas(7): F2063 Could not compile used unit 'madRes.pas'
Failed
Elapsed time: 00:00:00.6
然后向我展示了单元 madRes 的这一部分:
if GetVersion and $ 80000000 = 0 then
result: = CreateFileW (fileName, c1, c2, nil, c3, 0, 0)
else result: = CreateFileA (pchar (string (WideString (fileName))), c1, c2, nil, c3, 0, 0);
end;
该代码是我发现exe运行良好的程序,但问题是当我想从我的计算机编译时。
有人可以帮助我吗?