using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
using Direct3D=Microsoft.DirectX.Direct3D;
   : 类型或命名空间名称“DirectX”在类或命名空间“Microsoft”中不存在(是否缺少程序集引用?)
    引用什么才能编译呢/
    在sdk中,只发现了,*.lib 和c++的.h头文件.

解决方案 »

  1.   

    DirectX Redistribution
    Stand-alone developer runtime installers install only the DirectX developer and debug runtime for redistribution purposes. These installers are located at:
    (SDK root)\Developer Runtime\Managed DirectX\DirectX 9.0 for Managed Code includes a full set of DLLs for redistribution. To install the full set, perform the following steps.Verify that the Framework is installed. 
    Navigate to:
    (SDK root)\Redist\DirectX9\ 
    Call DXSetup.exe with the /InstallManagedDX command line attribute, as follows. 
    DXSetup.exe /InstallManagedDX
      

  2.   

    你是装的directx的120多Mb的开发包吗?如果没有自动引用,需要点击->项目->添加引用,打开以下两项。
    Microsoft.DirectX;
    Microsoft.DirectX.Direct3D;
      

  3.   

    是的.
       是DirectX 9.0b sdk 大概120多M
      

  4.   

    现在都是9.0 c 了。
    你的版本老了点。这里有个最新的。 不过支持2005好点,2003需要像上面一样引用一下。http://download.microsoft.com/download/a/c/d/acdfb557-266f-4af4-8673-6ab8009b4ddd/dxsdk_apr2005.exe