书上写用DirectDrawCreateEx,而我只能用DirectDrawCreate 是不是我加的库不对?

解决方案 »

  1.   

    DirectDrawCreateEx 返回的 IDirectDraw 接口可以用来创建 IDirect3D 接口, DirectDrawCreate 不行。
      

  2.   

    I think you using the wrong lib. VC have 
    a ddraw.lib and this guy doesn't work. you
    should use dircectx ddraw.lib 
    in the VC->menu->tools->option->directory->library files
    move your directx lib directory to top is OK, good luck