What are you specs?
DirectX is a Windows component. Have you installed the latest windows updates? Also, BO2 uses your Windows DirectX to access graphics libraries. Hence, you should install the latest version of your videocard drivers. if both of these action fails. You could try and reinstall the game (after you've done all the updates mentioned above).