Thread: Direct Draw problem

  1. #1
    Registered User morbuz's Avatar
    Join Date
    Aug 2001
    Posts
    35

    Unhappy Direct Draw problem

    I'm reading "Tricks of the windows gameprogramming gurus" by André Lamothe. I have begun on the first chapter about Direct Draw.
    When I try to build the first DDraw example i get this error:

    WinMain.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw4

    I have installed the Directx SDK and I have set the search paths in the Compiler options to search the SDK lib and innclude directories.

    I really hope anyone can help...
    [Signature here. (Remove this!)]

  2. #2
    Registered User morbuz's Avatar
    Join Date
    Aug 2001
    Posts
    35
    Here is the .cpp file by the way...
    [Signature here. (Remove this!)]

  3. #3
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    you are not linking DirectX, and if you are, you may be doing it with an older (or maybe newer) version.

    check your linker and directory settings

    By the way: why did you buy a DirectX 4 book, you should have bought a DX7 or DX8 book, or maybe wait till DX9 comes out.

    Oskilian

  4. #4
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    ah yes, that one chapter called "First Contact: DirectDraw" right? anyway, just include the correct LIBs, it should tell you how in the first chapter in the book.

  5. #5
    Registered User Tazar's Avatar
    Join Date
    Aug 2001
    Posts
    13

    Post

    Just include ddraw.lib

    Tazar The Demon
    Tazar The Demon
    -------------------------------------
    Please check my site out at: http://www.lrs.8m.com thanks =)
    -------------------------------------
    Note:
    I will help newbies and any other person that I can just ask I'll try to help you out =)

    My MSN Messager name is: [email protected] see if I'm online maybe we can talk. =)

  6. #6
    Registered User morbuz's Avatar
    Join Date
    Aug 2001
    Posts
    35

    Problem solved

    Found out I had to include DXGUID.LIB
    [Signature here. (Remove this!)]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM
  2. Words and lines count problem
    By emo in forum C Programming
    Replies: 1
    Last Post: 07-12-2005, 03:36 PM
  3. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  4. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM
  5. problem with drawnin a user-defined line
    By Isometric in forum Windows Programming
    Replies: 3
    Last Post: 02-12-2002, 11:00 PM