It's odd because PCX has been around since the late 80's, and I can't find much about
it online, some white papers or even pseudo code........nothing!
I did manage to find some source code for VB, but it's:
1. In German and not a lot of comments
2. It's 24 bit only (at least I think it is....I need 8 bit)
3. doesn't work!

At the moment I'm using the FreeImage.DLL (another nice free dll that has dissapeared) to read PCX files,
and I have only just discovered that it doesn't write them! :-\ (It does write bmp,jpg and gifs though....
but it's pointless for RND)
This is a shame because FreeImage can load 27 image formats (even CBM64 koala and Amiga IFF), and has
an absolutely AMAZING colour reduction algorithm that is better than Paintshop Pro's!