"Using" DirectX class libraries- newbie question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Webb

    "Using" DirectX class libraries- newbie question

    Sorry, stupid newbie question.

    I have VS2008, and I downloaded and installed the DirectX SDK.

    I want to access the DirectX classes from C#, but I can't see how to make C#
    aware of them.

    using Microsoft.Direc tX.Direct3DX;

    says the namespace doesn't exist.

    How do I link so a C# program has access?

    Thanks, Peter Webb



  • Carl Daniel [VC++ MVP]

    #2
    Re: "Using&quo t; DirectX class libraries- newbie question

    Peter Webb wrote:
    Sorry, stupid newbie question.
    >
    I have VS2008, and I downloaded and installed the DirectX SDK.
    >
    I want to access the DirectX classes from C#, but I can't see how to
    make C# aware of them.
    >
    using Microsoft.Direc tX.Direct3DX;
    >
    says the namespace doesn't exist.
    You need to add reference(s) to the DirectX assembly(ies) - they've got
    names like microsoft.direc tx.*.dll. The documention for the DirectX SDK
    should tell you which assembly(ies) you need to reference for any given
    DirectX feature.

    -cd


    Comment

    • Rob Lancaster

      #3
      Re: "Using&quo t; DirectX class libraries- newbie question


      "Peter Webb" <webbfamily@DIE SPAMDIEoptusnet .com.auwrote in message
      news:4826880c$0 $30462$afc38c87 @news.optusnet. com.au...
      Sorry, stupid newbie question.
      >
      I have VS2008, and I downloaded and installed the DirectX SDK.
      >
      I want to access the DirectX classes from C#, but I can't see how to make
      C# aware of them.
      >
      using Microsoft.Direc tX.Direct3DX;
      >
      says the namespace doesn't exist.
      >
      How do I link so a C# program has access?
      >
      Thanks, Peter Webb
      >
      In addition to adding the references as Carl said, the above line should be

      using Microsoft.Direc tX.Direct3D; //No X at the end.

      Rob


      Comment

      Working...