thanks but i need some documantation by which i can learn how to do RPC program in Win32. the answer you give in repaint prob is extraordinary