Results 1 to 15 of 15

Thread: .net and Direct X path

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    .net and Direct X path

    hi
    I have installed DirectX also Visual Studio .NET.

    But i dont know how to set the path for dot Net
    i.e
    Without setting the path i am not able to get Microsoft Properties like

    using Microsoft.DirectX;
    using Microsoft.DirectX.Direct3D;

    The above properties wont come...

    Please tell me how to link or set path between .net and DirectX

    Regards

    Deepak

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Please Reply

    Have you added a reference to Microsoft DirectX. Open Project Menu and Click Add Reference in .NET ot COM tab you should see Microsoft DirectX or something similar to this. Double click on that and then click ok. Now Microsoft DirectX should appear in your references.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Please Reply

    This is a duplicate thread and the name is not exactly descriptive of the problem. They are both something you should avoid in future.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: .net and Direct X path

    You have to add the references to your project before you can use them.

    Just right click on the References in the Solution Explorer and then click Add.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Please Reply

    I just answered your other thread and didn't see this one. Bah!
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: .net and Direct X path

    Typically I will delete duplicate threads, but as both of them had replies, I've simply merged the two.

    CodeMaker: Please do not double post.

    Everyone else: If you spot duplicate posts and I'm not around, just send me a PM and I will take care of it. Thanks.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Thank you

    hi
    Thank you for reply.

    Actually i have downloaded code sample from
    http://msdn.microsoft.com/coding4fun...g/default.aspx
    [developing game using .net and directX]

    while running this code sample i faced the following problem

    1) Direct X reference [Which now works fine after your last reply.Thanks]
    but following two more errors pending...
    2) Unsafe code may only appear if compiling with /unsafe
    3) The type or namespace name 'Framework' could not be found
    (are you missing a using directive or an assembly reference?)

    First one solved.
    2nd and 3rd..i dont know which reference to be added.

    Waiting for your kind reply..
    Thank you
















    Quote Originally Posted by Shuja Ali
    Have you added a reference to Microsoft DirectX. Open Project Menu and Click Add Reference in .NET ot COM tab you should see Microsoft DirectX or something similar to this. Double click on that and then click ok. Now Microsoft DirectX should appear in your references.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Sorry for double post

    Hi...
    Since i am new to forum i was bit confused...
    Sorry for double post...

    Thank you



    Quote Originally Posted by Hack
    Typically I will delete duplicate threads, but as both of them had replies, I've simply merged the two.

    CodeMaker: Please do not double post.

    Everyone else: If you spot duplicate posts and I'm not around, just send me a PM and I will take care of it. Thanks.

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: .net and Direct X path

    2. You have to specify that unsafe code is allowed in the project properties, which adds the "/unsafe" switch to the compiler commandline.
    3. Whatever assembly that "Framework" namespace or type is defined in has not been added as a reference to your project. A project can't know about every assembly by default. It knows about a few common ones but anything else you have to tell it about, which means adding a reference to yuor project.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    3rd still exist

    Thanks for reply and help...
    But 3rd problem still not solved.
    I have added reference from "Add Reference"
    i have added "Microsoft.Build.Framework"
    still it says
    "The type or namespace name 'Framework' could not be found (are you missing a using directive or an assembly reference?)"

    I have searched in .NET Tab.
    I could not find in COM Tab also..

    Even I have added the Line

    using Microsoft.Build.Framework;

    May i know the problem..

    Thank you


    Quote Originally Posted by jmcilhinney
    2. You have to specify that unsafe code is allowed in the project properties, which adds the "/unsafe" switch to the compiler commandline.
    3. Whatever assembly that "Framework" namespace or type is defined in has not been added as a reference to your project. A project can't know about every assembly by default. It knows about a few common ones but anything else you have to tell it about, which means adding a reference to yuor project.

  11. #11
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: .net and Direct X path

    Where did this code come from that uses this "Framework" identifier? I think you'll find that the Microsoft.Build.Framework namespace is for the use of the IDE, presumably for building projects. I doubt that it's something that the casual developer should be messing with.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    downloaded

    I have got from below link

    http://msdn.microsoft.com/coding4fun...g/default.aspx
    Right side of the page there is option to download the code

    Thank you


    Quote Originally Posted by jmcilhinney
    Where did this code come from that uses this "Framework" identifier? I think you'll find that the Microsoft.Build.Framework namespace is for the use of the IDE, presumably for building projects. I doubt that it's something that the casual developer should be messing with.

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Please reply

    Hi

    Hope you downloaded the code and checked.
    Me still hanging in that problem..
    Please reply..



    Quote Originally Posted by jmcilhinney
    Where did this code come from that uses this "Framework" identifier? I think you'll find that the Microsoft.Build.Framework namespace is for the use of the IDE, presumably for building projects. I doubt that it's something that the casual developer should be messing with.

  14. #14
    New Member
    Join Date
    Feb 2006
    Posts
    4

    Unhappy Re: .net and Direct X path

    I am having the same problem, from the exact same MSDN article. Google isn't returning any results on this other than your question. I tend to believe that dxmutmisc.cs is apparently out-of-date with the current DX build and was overlooked by MS.

  15. #15
    New Member
    Join Date
    Feb 2006
    Posts
    4

    Re: .net and Direct X path

    OK, I've learned that I need to include *all* of the sample Utility Toolkit framework files, or Samples\Managed\Common\dxmut*.cs. However, it only worked if I used the .NET v1.1 DX assemblies. Using the single .NET v2 assembly, I still get compiler errors.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width