im trying to compile Agent-Hs32-Idir[V-P] Rat Open source (the server i got the client working)
but i run into this error :
[DCC Error] Option.pas(84): E2010 Incompatible types: 'Char' and 'AnsiChar'
and it brings me to this line:
cHandle := FindFirstFileA(PChar(FileName), FindData); Result:= cHandle <> INVALID_HANDLE_VALUE; IF Result THEN begin FindClose(cHandle); end; end;
i did some research and was reading that You must replace all PChar with PAnsIChar. PChar is a PWideChar in
Delphi 2009 cuz 'Char' and 'PChar' are now 'WideChar' and 'PWideChar' in
D2009. You cannot assign an AnsiChar/PAnsiChar to a WideChar/PWideChar,
and vice versa, without extra coding....but ..its alsways somthing simple and i usually make shit complicated....lol can somone help me out or give me some ideas as to why im getting this error?:confused:


LinkBack URL
About LinkBacks
Reply With Quote
: E2010 Incompatible types: 'Array' and 'PAnsiChar'
