The symbol "Direct3DCreate9Ex' is defined in "ddraw.h" header file found in "C:\Program Files\Microsoft SDKs\Windows\v7.0\Include". And verified that the header file "ddraw.h" is present in this location. Also I have included this path in VS settings "Tools-->Options-->VC++ Directories -> Includes".

1 Answer
1

S I have added the path to DirectX Lib folder "C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Lib\x64" in the VS settings: "Tools-->Options-->VC++ Directories-> Library" which has "d3d9.lib. But still :(
–
codeLoverApr 11 '12 at 10:17

@codeLover, I am sorry but I do not use IDEs so I don't know if you want to have done is correct. But note that just because you are on a 64-bit machine does not necessarily mean you are building a 64-bit executable, it is possible to build 32-bit binaries.
–
hmjdApr 11 '12 at 10:20

you have to specify d3d9.lib in Linker->Input->Additional Dependencies
–
stijnApr 11 '12 at 10:33

Yes, d3d9.lib does exist in Linker options. And the error I am getting does is because of d3d9 only as "Direct3DCreate9Ex" is a part of ddraw.h
–
codeLoverApr 11 '12 at 10:52

Also I have included dxguid.lib in the linker options.
–
codeLoverApr 11 '12 at 10:58