Hey,

I've been trying to get some code working with FPC, however it chokes on the following line:

[pascal]
procedure TNashaLogger.Write(aLogStr: String);
begin
FLog.Add(aLogStr);

{$IFDEF MSWINDOWS}
OutputDebugString( PChar(aLogStr) ); << HERE
{$ENDIF}
end;
[/pascal]

G:\n3d\workingdir\src\n3d_log.pas(91,22) Error: Illegal type conversion: "ShortString" to "^Char"
Does the keyword String refer to a shortstring in FPC?

I have placed the following at the top of my unit:
[pascal]
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
[/pascal]

But it doesn't really help. Can anyone tell me what I can do to fix this?

I would be really thankfull if someone gave me an article that helps you port delphi code to FPC. Especially the small differences in functionality, strings, types etc would be good to know about.

Thanks in advance.