I use the following link for starting an application with direct3d:
I use this book too: Introduction to 3D Game Programming, written by Frank Luna
I use Microsoft Visual Studio 2012 C++ and Microsoft DirectX SDK (June 2010).
I have the following errors during debug of my application.
in the file DirectInput.cpp at the following lines:
The error is: one box appears with the following text:
Unexpected error encountered.
with buttons: YES/ NO
I don't know how to attach a screenshot of the error to the message.
Could you please help me to resolve the problem.
Also in DirectInput.h
I changed the declaration of the following:
extern DirectInput* gDInput;
in static DirectInput* gDInput;