VB.Net and Direct X 8


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: VB.Net and Direct X 8

  1. #1
    Tim Guest

    VB.Net and Direct X 8


    Quick Question:-

    Has anyone managed to get a vb.net direct x app working yet?

    I cant seem to find anything appropriate on the web (that Works).

    I want to create a simple, example direct x app that uses 3d graphics to
    draw a triangle etc. (Ie a simple object in 3D)

    I have tried converting a working vb 6 app - no luck and tried creating a
    vb.net app from scratch (exception errors)

    I have even read that .net compatability with Direct x isn't going to be
    available until DX9 - is this true?

    Please help by responding here and maybe pointing to an example of the web?
    - thanks in advance.

    Tim

  2. #2
    Patrice Scribe Guest

    Re: VB.Net and Direct X 8

    Heard the same and saw many people having various problems. Some areas are
    said to be almost unusable (DirectPlay). My option is rather to switch to
    ..NET by DX9...

    If you still want to use DX8 under .NET, try sites such as
    http://sunlightd.virtualave.net/Windows/DirectX.NET/ ...

    Patrice

    "Tim" <vb.@127.0.0.1> a écrit dans le message news: 3cf39a73$1@10.1.10.29...
    >
    > Quick Question:-
    >
    > Has anyone managed to get a vb.net direct x app working yet?
    >
    > I cant seem to find anything appropriate on the web (that Works).
    >
    > I want to create a simple, example direct x app that uses 3d graphics to
    > draw a triangle etc. (Ie a simple object in 3D)
    >
    > I have tried converting a working vb 6 app - no luck and tried creating a
    > vb.net app from scratch (exception errors)
    >
    > I have even read that .net compatability with Direct x isn't going to be
    > available until DX9 - is this true?
    >
    > Please help by responding here and maybe pointing to an example of the

    web?
    > - thanks in advance.
    >
    > Tim




  3. #3
    Rob Teixeira Guest

    Re: VB.Net and Direct X 8



    You'll encounter some issues with the DX type library made for VB6. To me,
    that's been the biggest pain. Part of the problem is that the VB6 wrapper
    exposed VB6-specific interfaces that had some very kludgy (and incosistant
    in a lot of cases) parameter types.
    .NET works a lot better if you target the C++ COM interfaces directly (by
    that, i mean not using the VB6 wrapper). Of course, in C++ rather then using
    type libraries, you can import a ton of header files instead, which is how
    DX works. Unfortunately, .NET has no idea what a header file is. So the only
    alternative you have is to define a .NET wrapper manually. I've created a
    few samples back in beta 2 using DX7. Tim Overbay who lurked around this
    newsgroup a while back also started creating a complete DX 8 library for
    .NET. I'm not sure how far he got.
    If you can translate C++ types to .NET types and know how .NET-COM marshaling
    works, it's not difficult to do, just tedious.

    In the meantime, you can also wait for DX 9, which does have support for
    .NET.

    -Rob


    "Tim" <vb.@127.0.0.1> wrote:
    >
    >Quick Question:-
    >
    >Has anyone managed to get a vb.net direct x app working yet?
    >
    >I cant seem to find anything appropriate on the web (that Works).
    >
    >I want to create a simple, example direct x app that uses 3d graphics to
    >draw a triangle etc. (Ie a simple object in 3D)
    >
    >I have tried converting a working vb 6 app - no luck and tried creating

    a
    >vb.net app from scratch (exception errors)
    >
    >I have even read that .net compatability with Direct x isn't going to be
    >available until DX9 - is this true?
    >
    >Please help by responding here and maybe pointing to an example of the web?
    >- thanks in advance.
    >
    >Tim



  4. #4
    Phil Weber Guest

    Re: VB.Net and Direct X 8

    > Has anyone managed to get a VB.NET DirectX app working yet?

    Tim: You might take a look at the Donkey.NET sample
    ( http://msdn.microsoft.com/vbasic/dow...les/donkey.asp ). It looks
    like it uses DirectX, but it may be calling it via a VB6 wrapper.
    ---
    Phil Weber



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center