Direct3DCreate9

Started by
2 comments, last by psyho 20 years, 12 months ago
I have a problem with Direct3D and Visual C++ .NET I''ve recently started learning DirectX (from Mason McCuskey''s book) and when I''ve got to the first program in Direct3D the compiler anounced such error (this is copied from Output Window in Visual C++): Compiling... main.cpp Linking... main.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "long __cdecl InitD3D(struct HWND__ *)" (?InitD3D@@YAJPAUHWND__@@@Z) Debug/d3d01.exe : fatal error LNK1120: 1 unresolved externals After a while I''ve got mad and reinstalled the whole system, but the error still appears. I''ve checked the Include directory list, and Libraries directory list and c:\dxsdk\include is on the top, so I guess it''s correct. Because the sample program is in DirectX 8.0, I''ve tried tutorial 1 program from DirectX SDK, and it doesn''t work too. A word about my configuration: Windows XP (no service pack) Visual Studio .NET (full installation, no service pack either) DirectX SDK 9.0 (C++)(I don''t remember the bulid number, but I downloaded it about 2 weeks ago) I don''t have any connection to Internet I have AMD Duron 1000MHz with 256MB SDRAM and GForce 2MX 400 64MB (I don''t think it''s important so I won''t give You the whole configuration) Here are the paths to the complete Build Log and the sample program: http://www.v-lo.krakow.pl/~psyho/BuildLog.htm http://www.v-lo.krakow.pl/~psyho/main.cpp Please help me, what do I need to do? ______________________________ Adam ''''Psyho'''' Pohorecki
______________________________Adam 'Psyho' Pohorecki
Advertisement
look here

EDIT:

and if you dont find the answers there, ask yourself if you are linking d3dx9.lib to the project.

[edited by - RhoneRanger on April 28, 2003 9:17:50 AM]
TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno
No he needs to include d3d9.lib not d3dx9.dll
Thanks this helped a lot!

______________________________
Adam ''''Psyho'''' Pohorecki
______________________________Adam 'Psyho' Pohorecki

This topic is closed to new replies.

Advertisement