Results 1 to 6 of 6

Thread: .NET and Direct X

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    15

    Question .NET and Direct X

    Anybody try programming any DirectX in VB .NET?

    Just started with DirectX. Downloaded some sample code in VB6 which works fine. .NET will try to translate it into something it can use if you let it. Unfortunately, some of the methods don't seem to exist in .NET.

    Does .NET even support DirectX?

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    I think your best bet will be to wait. Ms are releasing DX version 9 (the next one) which is built for the .net framework for you to use. No ideas when this is out at the moment - you might want to check their site for this...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    15
    I appreciate that response. I'm a bit too shortsighted to realize that (of course!) a DX9 is coming, and that I should look for it.

    I just assumed that .NET would support DirectX outright. Hmm...guess I should practice a bit with DirectX 8.1 with VB6 until then.

    Thanks

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You can program with Direct X in .Net. Here is a C# link (you would have to convert from C# to VB.Net)
    http://www.c-sharpcorner.com/Directx.asp

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    hi , I was programming little stuff using DX.Well , VB.NET still support DX7 & DX8 .

    here is a good example using DX in VB.NET

    Microsoft Releases Beta Version 1 of DirectX 9.0 , if you want further reading concering this then Click here

    Pirate

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    15
    Cudos to HellsWraith, for a very excellent site. Although it's written in C#, it would take time to port it to VB.NET, but not much brainwork. Furthermore, all the code works, unlike...

    using VB.NET site, which I spent hours figuring out how to pre-compile the header (sunlight.DirectX.whatever), which still doesn't seem to work. Put the compiled .DLL right in the folder and .NET still can't seem to find it. Gets better. The #import <amvideo.h> statement or something just won't work....NET acts like there is no such thing, though there clearly are 2 instances of this file listed on a search of my system.

    I think I had to comment that part out altogether to precompile the header without C++.NET screaming at me.

    I notice LOTS of effort on both sides to put wrappers on DirectX. Guess it needed done.

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