woodsman Posted February 13, 2004 Posted February 13, 2004 I'm attempting to run code from the book Managed DirectX 9 and seem to have run into a problem on the chapter where the author discussed using sprites. sprite.Begin(SpriteFlags.AlphaBlend) The errors are: E:\Prog\Visual Studio Projects\C# Projects\DXTest1\Form1.cs(104): The type or namespace name 'SpriteFlags' could not be found (are you missing a using directive or an assembly reference?) E:\Prog\Visual Studio Projects\C# Projects\DXTest1\Form1.cs(204): No overload for method 'Draw' takes '5' arguments I can probably figure out the Draw function given the MSDN, but for the life of me I can't seem to see my error. MSDN says: Namespace Microsoft.DirectX.Direct3D Assembly Microsoft.DirectX.Direct3DX (Microsoft.DirectX.Direct3DX.dll) Which I've included. Has anyone else run into this or know what is wrong? I'm stumped. Quote
LDV Posted February 14, 2004 Posted February 14, 2004 use a newer VS.NET Hi, I ran into this problem. You are using older version of DirectX9 or VS.NET 1. Be sure to use the Managed DirectX9 DLLs build 1126. 2. Be sure to use VS.NET 2003 LDV. Quote
slantz Posted February 15, 2004 Posted February 15, 2004 I don't think you do. I'm using VS.NET 2002, and although it is a pain sometimes, it does work. Make absolutely sure you've updated your .NET Framework (to at least 1.1) and Managed DX 9.0b Summer Update. Quote
LDV Posted February 15, 2004 Posted February 15, 2004 I had this problem. And i solved it by: 1. Installing .NET framework 1.1 2. Installing the latest DirectX9 SDK Managed 3. Visual Studio .NET 2003 As much as i know, you must use the VS.NET 2003 (it is version 7.1.3088 - check it in the help-about menu) LDV Quote
woodsman Posted February 17, 2004 Author Posted February 17, 2004 Re: use a newer VS.NET 1. Be sure to use the Managed DirectX9 DLLs build 1126. LDV. Where can I get this? Mine all say build 900... Quote
LDV Posted February 24, 2004 Posted February 24, 2004 http://download.microsoft.dom - under the DirectX SDK LDV Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.