need help please

Discussion in 'Programming/Html' started by romul, Jan 15, 2013.

  1. romul

    romul Master Guru

    Messages:
    383
    Likes Received:
    25
    GPU:
    Gigabyte 3070 gamin
    hi there!
    im total newbe and have a problem.iv got Andre Lamothe book "tricks of windows game programming gurus" and when im compiling first example in this book ive got errors:

    Warning 1 warning C4101: 'ps' : unreferenced local variable
    Warning 2 warning C4101: 'hdc' : unreferenced local variable
    Error 4 error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "int __cdecl DD_Init(int,int,int)" (?DD_Init@@YAHHHH@Z)
    Error 5 error LNK1120: 1 unresolved externals

    and some more.but if go to project properties and change character set from Unicode to multibyte I end with errors 4 and 5 only.

    now the book is from 2002 so the .cpp files and Im using visual studio 2012 express with windows 8 with directx sdk that comes with it.
    I don't see ddraw.lib in sdk folder and don't know what to do and how to resolve the errors above
    any help please will be appreciated
    thank you
     
    Last edited: Jan 15, 2013
  2. gamerk2

    gamerk2 Ancient Guru

    Messages:
    2,108
    Likes Received:
    1
    GPU:
    NVIDIA 570 GTX 1.2 GB
    Eek; I know the _DirectDrawCreateEx is an older DX7 command; I'm not sure its even supported anymore. I know DirectDraw itself has been phased out in favor of Direct2D...

    Try downloading the DirectX Redistributional package and see if it includes dDraw.dll.
     

Share This Page