Richard is suggesting....
Hard in IDE 1 as master
CD-RW on IDE 2 as master
So separate cables - each as a master.
Check during the boot process whether the BIOS is detecting the CD-RW drive. Does it get listed as the drives are detected? Can you go into the BIOS and detect it? If not then reinstalling Windows won't help - since this detection takes place before Windows starts.