Jump to content

Directx 9.0 Code problem


Recommended Posts

My Computer Science class is working with Managed Directx 9.0 in an attempt to learn game programming, but we've encountered numerous problems with Directx... whenever we try to compile and execute, we get an InvalidCallException when we try to instantiate a new device...

device = new Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentPerams);

This is the first example from the book... you create a revolving triangle... and we can't work out the problem... we've tried re-installing a clean OS... re-installing VS.NET... and reinstalling Directx 9 and all the updates... to no avail

We're using Visual Studio.NET 2003... and we do have the summer 2003 SDK Directx 9 update

We've also tried the new April 2005 SDK, and that didn't work... we've tried numerous SDK's and still experience the same problem... thanks for the quick reply though

Anyone have any idea how to fix this?

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...