locked
including header file RRS feed

  • Question

  •  

    hi ,

    I´m trying to start with DirectX DirectSound and , as I read on msdn ( http://msdn2.microsoft.com/en-us/library/bb172378(VS.85).aspx ) , I tried to include the dsound.h file like this :

     

    Code Snippet

    using Microsoft.DirectX.DirectSound;

    #include

     

     

    but there´s always this error :

    Code Snippet

    preprocessor directive expected

     

     

    any ideas what´s wrong ?

    thx

    Wednesday, April 2, 2008 2:27 PM

Answers

All replies

  • If your coding in C# there shouldn't be an "include" directive...

     

    http://msdn2.microsoft.com/en-us/library/ed8yd1ha(VS.71).aspx

     

    "using" in C# is practically like "include" so you don't need to do anything like that. The problem you're getting is due to the compiler not know a preprocessor directive named "include" just remove the line and you should be fine to go...

    Wednesday, April 2, 2008 2:30 PM
  •  echom wrote:
    If your coding in C# there shouldn't be an "include" directive...

     

    http://msdn2.microsoft.com/en-us/library/ed8yd1ha(VS.71).aspx

     

    "using" in C# is practically like "include" so you don't need to do anything like that. The problem you're getting is due to the compiler not know a preprocessor directive named "include" just remove the line and you should be fine to go...

     

    thank you Smile

    so I´m going to continue only with

     

    Code Snippet

    using Microsoft.DirectX.DirectSound;

     

     

    Wednesday, April 2, 2008 3:37 PM
  •  

    Yup Big Smile

    Monday, April 7, 2008 7:41 AM