• Advertisement

Archived

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

Unresollved External in Direct Draw

This topic is 6539 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
And don''t forget to make sure that the directory that contains the latest version of ddraw.lib comes first in the link path.

Share this post


Link to post
Share on other sites

  • Advertisement