Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. why can not find particular reference in the project/Add reference

why can not find particular reference in the project/Add reference

Scheduled Pinned Locked Moved C#
csharpgraphicsgame-devtutorialquestion
4 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    henrykao
    wrote on last edited by
    #1

    Hi: I would like to add DirectX reference to the C# project.I installed the DirectX9.0 SDK(for c#) already, but still not can find the DiretX reference. without that, i can not use namespace of DirectX, so can not continue work. any boday have idea how to do? thanks henry

    C 1 Reply Last reply
    0
    • H henrykao

      Hi: I would like to add DirectX reference to the C# project.I installed the DirectX9.0 SDK(for c#) already, but still not can find the DiretX reference. without that, i can not use namespace of DirectX, so can not continue work. any boday have idea how to do? thanks henry

      C Offline
      C Offline
      Craig Collier
      wrote on last edited by
      #2

      Henry: At the risk of sounding ignorant, have you searched the COM tab in the Add Reference dialog? Craig "If your ship doesn't come in, sometimes you have to swim out to it" - Audrey Quock

      H 1 Reply Last reply
      0
      • C Craig Collier

        Henry: At the risk of sounding ignorant, have you searched the COM tab in the Add Reference dialog? Craig "If your ship doesn't come in, sometimes you have to swim out to it" - Audrey Quock

        H Offline
        H Offline
        henrykao
        wrote on last edited by
        #3

        yes. I did search on the COM tab, only have directX for VB, not DirectX for c#. The more strange thing is after I downloaded and installed SDK9.0 for C#, all the api are c++.the label of downloaded component is C#,but why the code and API of that is c++? do u have any idea? thanks a lot henry

        D 1 Reply Last reply
        0
        • H henrykao

          yes. I did search on the COM tab, only have directX for VB, not DirectX for c#. The more strange thing is after I downloaded and installed SDK9.0 for C#, all the api are c++.the label of downloaded component is C#,but why the code and API of that is c++? do u have any idea? thanks a lot henry

          D Offline
          D Offline
          Danny Blanchard
          wrote on last edited by
          #4

          henrykao wrote: yes. I did search on the COM tab If you want your project to be able to access "Managed DirectX", then you'll have to search for Microsoft.DirectX.< DirectX Component > under the .NET tab. henrykao wrote: only have directX for VB, not DirectX for c#. Those libraries under the COM tab are for Visual Basic 6, but you can use them with VB.NET or C# ( both VB.NET and C# both would require an Interop dll which would be created by visual studio once you add the reference ) henrykao wrote: the label of downloaded component is C#,but why the code and API of that is c++? Unfortunatly, 95% of the documentation you download from Microsoft for DirectX will be in c++, but if you search hard enough you will find some VB documentation inside the C++ help files (especially for DirectShow). On the plus side, the directx objects for C++ and VB are similar and work basically the same way. The C# code is in the SDK directory in the samples folder. Hope that's of some help to you. Daniel E. Blanchard

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups