Ok, I have fixed it now and it runs under D2010! yay
I also replaced all #0 with AnsiChar(#0)...

BeRoPNG.zip

cheers,
Paul