Start up Blues Direct X ?!

Started by
1 comment, last by nrj 21 years, 4 months ago
Hi All, I am new to directX programming and having a startup problem. I compiled, linked and ran the Demo programmes successfully of DirectX 8.1 SDK . I then created my first Direct3d application. It basically sets up a windows framework and Initializes Direct3D. The programme compiles right but generates a linking error: error LNK2001: unresolved external symbol _Direct3DCreate8@4 fatal error LNK1120: 1 unresolved externals I traced the error to the function:Direct3DCreate8(D3D_SDK_VERSION). (Frustrating ain''t it?!) Leaving this commented, rest compiles and links without errors!? I have checked all the paths and directories. Everything Seems OK. Here is the pseudo code of the application: Include Header File d3d8.h Create Windows framework; Create function named setup3d; In the Function { Created A LPDIRECT3D object; Created A LPDIRECT3DDEVICE8 object; Initialized LPDIRECT3D object using: (object)=Direct3DCreate8(D3D_SDK_VERSION); /*This is where the linking error generates*/ And So on......; } I use Visual 6 with Service Pack 5 and DirectX SDK 8.1 Anyone Anybody can Help me out there? Thanks in advance
Advertisement
link the libs, project settings
What clown-boy said.

in VC++..

Project->Settings->Link (Tab)

At the bottom where it says "Project Options", put in "dxguid.lib" and the d3d libfile (it may be "d3d.lib", but i''m not sure)
Programmers of the world, UNTIE!

This topic is closed to new replies.

Advertisement