U probably have the Beginning Game Programming with DirectX9. There was a problem at the printer with underscores in DX identifiers. Whenever you see a space in the code you know there should be an underscore.

An easy fix and a good book.