Tech Off Post

Single Post Permalink

View Thread: Discuss the Beginning Game Development series on Coding 4 Fun
  • User profile image

    AndyC wrote:
    The latest DirectX comes with two versions of managed DirectX the old 1.1 version and a 2.0 beta (which doesn't seem to play nice with 2.0RTM)

    If, when you add the DirectX references, you avoid adding the v2.0 Microsoft.DirectX library and instead only add the older versions (marked v1.1.4322) then everything seems to work okay.

    There do seem to have been a few breaking changes between versions though so if the code was written against the 2.0 beta you might have to amend it slighty or use the beta 2.0 runtime (at least until a new DirectX SDK comes out, which will hopefully not be too long!)

    I'm running VS 2005 Pro, WinXP Pro, DirectX v 1.0.2902.0 and I get a run-time exception: System.TypeInitializationException at this line of code...

    int adapterOrdinal = Manager.Adapters.Default.Adapter;

    What information do I need to provide to get some help with this problem?  I tried using the 2.0 version and that failed as well with a conflict between DLL versions.