This topic is 4328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I'm currently trying to teach myself C# and Managed DirectX by converting my pre-existing particle editor over. Although for some reason the simple act of loading a texture is eluding me. I've seen code snippets for loading using
Texture img = null;


unfortunately I'm getting the error on compile CS0103 The name TextureLoader does not exist in the current context. So I looked up error CS0103 and it says that I'm not using the correct "using"s. But this is what I have for that
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;


edit : forgot to mention using VS2005 and April 2006 version of DX:SDK Thanks in advance, Adam [Edited by - AHowell on April 16, 2006 11:30:26 PM]

Share on other sites
Did you add the references to the DirectX DLLs?

Right click on References under your project. Select "Add Reference" and in the .NET tab, find Microsoft.DirectX. Then add Microsoft.DirectX, Microsoft.DirectX.Direct3D and Direct3DX.

Toolmaker

Share on other sites
Thank you Toolmaker.

It was that amazingly easy part of adding the Direct3DX reference that I seemed to have left off.

Thanks again.