Howdy All,
Upfront Info : Windows XP Pro SP2, DirectX 9.0c (w /August SDK)
C# 2005 Express IDE
I have created a simple little DX app using the MS tutorials and other information that I have found on the internet.
All works well until I add a Dialog to the app.
private Dialog myDialog = null;
myDialog = new Dialog(framework)
There are no controls added to the Dialog only the creation of the initial instance.
The app compiles without complaint, but when I start debugging to see it run,
I receive the following error.
"Could not find required media. Ensure that the DirectX SDK is correctly installed."
I'll admit I am stumped. The error does not give enough information to even begin to try to fathom what is, perhaps, not installed correctly, if that is even the case.
Any assistance would be greatly appreciated.
Thanks in advance
Dean

SDK Error when running (Debugging) application
Dan Prudhoe
And nothing works. I created new solution, I added all of the common files. I copied Media/UI directory into my solution folder by hand. The error message keeps appearing.
I used "Add->Existing item", but still, the error message keeps appearing.
What am I doing wrong
Jacquemin
Borelord
Absolute_Zero
If you are using the Newer VS2005 IDE Systems you can add these folders to the solution and then change the properties of this files so that they copy to the executing directory at build time. This makes sure that the newer files are always transferred each time you build.
xp
You will have to but some breakpoint in and step through and see which particular file it is trying to locate and where it is looking.
There's only 3 media files the framework cares about, the em[ty .fx file that it tries to load, the .dds textures for the UI elements (though if you don't use the UI it won't load this) and a .x direction widget which is only used by thte samples.
So my guess is that you are missing the empty.fx file.
Jerry-liu
In the dxmutgui.cs the Dialog class is defined.
The constructor of the Dialog class makes a call to "InitializeDefaultElements()".
The first line of the method is "SetTexture(0, "UI\\DXUTControls.dds");"
I did not have this directory/file added to my project.
Funny how it seems that I pound my head against the wall for a couple of days,
and two minutes after making a post I find the answer. DOH !!
Well, back to key whacking....
Dean
Ron Swank
chinimimita
Using the Visual IDE, in the solution explorer, select the location (either the project name or a sub directory of it) where you would like to add the file. Right click and when the menu drops, select add->existing item. Then browse for the file that you would like to add to the project.
Hope that help !