Results 1 to 3 of 3

Thread: [RESOLVED] VB 2010 Express – References problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    17

    Resolved [RESOLVED] VB 2010 Express – References problem

    Hi everyone

    I’ve been learning VB for almost two months now and have completed a database project.

    The last two weeks I’ve spent some time looking at games programming. I’ve messed around with GDI+ and decided to move onto DirectX, though I’m at that stage where I still don’t really know what I’m doing.

    It’s quite confusing for a beginner because most of the tutorials seem quite old and they create their own forms, which I haven’t done, but would like to.

    Anyway, I eventually got the DirectX SDK downloaded and found out that I need to reference the dll’s in Express.

    So in Add References I browsed and selected:

    C:\WINDOWS\Microsoft.NET\DirectX for ManagedCode\1.0.2911.0\
    Microsoft.DirectX.Direct3DX.dll

    C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\
    Microsoft.DirectX.dll

    Then, from a tutorial I coded:

    Imports Microsoft.DirectX
    Imports Microsoft.DirectX.Direct3D

    Public Class Form1
    Private device As Direct3D.Device

    End Class

    But I get errors Type Direct3D.Device not defined.

    I tried to delete the references from the project but now Express keeps hanging with a delay notification that never ends and I have to force my PC to restart.

    I’ve scrubbed the project and will try again

    Incidentally, in add references the two references show in the Recent listing, not the .Net listing. For good housekeeping, can I get rid of them?

    And any hints on what I need to do to get up and running with DirectX would be appreciated.

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: VB 2010 Express – References problem

    If you are serious about coding a game using DirectX, then your best option is to use the XNA Game Studio, which needs to be programmed in C#. There are a ton of tutorials on the subject, however the one I liked the best was this one.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    17

    Re: VB 2010 Express – References problem

    Was using the wrong .dll, got it working at last.

    Thank you FA, I will look into that. Have found getting into DirectX rather frustrating thus far but will persevere.

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