Original Post
Hi,
I''m trying to initialize Direct3D in C++ as shown in the tutorials. I use both VS.NET and VC6 but get the same error (unresolved external symbol _Direct3DCreate9@4 or something like that) in the line:
if(NULL == (pD3D = Direct3DCreate8(D3D_SDK_VERSION)))
return E_FAIL;
(Exactly like in the tutorial). Is anything else required to be included except d3d9.h? Exactly the same thing occurs if I try to use DirectX 8 instead of 9. It seems very strange to me because samples who seem to have this same code, run normally. Any ideas? Thanks to anyone who might answer.