main.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
main.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
Debug/DirectX.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
DirectX.exe - 3 error(s), 0 warning(s)
I get those errors when trying to compile the following cpp file, and I don't know what's wrong. I installed the MASSIVE SDK (166 MB), I just don't know.
Have you tried linking to the dx libs?
yep, you probably didnt link to ddraw.lib.
to link to that file, (maybe there is a simpler way, im rather new to this) just right click on "Header Files" and choose "Add Files To Folder", then go to where you installed the directx sdk, in the folder "lib" there is a file called "ddraw.lib", choose it and press ok.
if you cant see any files there, under "File Type" choose "Library File (.lib)".
that should do it.
i finally got it. i had to go to project > settings > link tab and i typed in EVERY lib from DX. man thats a lot.
it shouldnt be that way.
anyway my way worked for me..