Hey,
I'm trying to learn DirectX from this book (Beginning Game Design by John S. Harbour, if anyone knows the book). I keep getting a LNK2019 error because Direct3DCreate9(D3D_SDK_VERSION)
is an "unresolved external symbol". Based on my slightly limited knowledge on libraries and include files and a little of my research, I'm assuming this means that C++ doesn't know what Direct3DCreate9() is (or that there's some difference between the definition of the function and it's use here). Does anyone know how to fix this. I've set d3d9.lib as a library file and C:\Program Files\Microsoft DirectX SDK (August 2007)\Include as an include. The code that's not working is:
int Game_Init(HWND hWnd)
{
MessageBox(hWnd,"Program is about to start","Game_Init",MB_OK);
d3d = Direct3DCreate9(D3D_SDK_VERSION);
if(d3d == NULL)
line 5 above. If anyone can help I'd be very thankful. Learning by doing can get annoying at times like this...