Cr-rom drive

I have this old 1999 gateway computer. I use it for my kids games. somehow they broke a peice of the plastic gears inside by trying to pull a cd out with a pen when it got stuck. I called gateway and they gave me a site to order a new drive, so I did and when I put it in and booted up it keeps giving me a rundll32 error. I followed some inst that i read online to install one but nothing is working. I have also removed the the old drive from the system. please help thanks