• (2 Pages)
  • +
  • 1
  • 2

Introduction to DirectX Intialization and simple window drawn with DX9

#16 Seroko  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 06-July 13

Posted 06 July 2013 - 06:29 AM

View PostMagn0733, on 21 May 2013 - 06:35 AM, said:

Hey, When i try to setup DirectX (the first box), i get 2 errors:

error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced int function "int_cdecl Game_Init(struct HWND_*)" (?Game_Init@@YAHPAUHWND_@@@Z).

error LNK2020: unresolved externals?

What is this and how do i fix it? :)/>
Guess it's a problem with my directories? but i did link both libaries and includes? :)/>


You need to link the d3d9 lib to your project. You can do this under linker settings or use pragma.
#pragma comment(lib,"d3d9.lib")

Was This Post Helpful? 1
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2