Archived

This topic is now archived and is closed to further replies.

ranxact

Unresollved External in Direct Draw

Recommended Posts

man.. i have had more problems in the last week... anwyay, i keep getting an unresolved external on directX functions, but only on DirectDrawCreate and DirectDrawCreateEx, the linker can find everything else... ie. g_pDD->SetCooperativeLevel(...) still works DDgraphics.obj : error LNK2001: unresolved external symbol _DirectDrawCreate@12 i have even tried the example code with the SDK, and i have made sure that the build directories are right... i am at a loss as to what is wrong. i reinstalled directX and the sdk to see f it was a bug.. but no. Any ideas? thanx, RanXacT

Share this post


Link to post
Share on other sites
I think most probably is that your library and include files are not in sync or you doesn't link with the correct library. Just add ddraw.lib and dxguid.lib to your project.

If that's not the case, what I know is, IDirectDraw4 and IDirectDraw7 have slightly different parameters on some function like DirectDrawCreate()...mmmm... maybe that the cause?

(correct me if i'm wrong here)

Edited by - DerekSaw on 3/30/00 10:16:57 AM

Share this post


Link to post
Share on other sites