Yes, I bet you just copied over your MAMEWAH folder from a different PC didn't you?...
Easiest thing to do is *install* MAMEWAH and then copy the \Files folder from your other PC. The installation process installs & registers PaintX.dll - or you can do this manually if you are comfortable using regsvr32.