Hi,
I am writing a program using SharpDevelop 4.0 and I have included DirectX 1.0.2902.0, Direct3D 1.0.2902.0 and Direct3DX 1.0.2902.0 as my references. I have also added these references to my using section at the top of my class file.
When defining some private properties to be used only within my class, see below...
namespace New
{
public partial class MainForm : Form
{
private Microsoft.DirectX.Direct3D.Device device;
private Microsoft.DirectX.Direct3D.VertexBuffer vb;
private int LastTickCount = 1;
private int Frames = 0;
private float LastFrameRate = 0;
private Microsoft.DirectX.Direct3D.Font text;
public MainForm()
{
InitializeComponent();
this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);
}
}
}
I have prefixed the problematic lines with // which allow the window to appear. If I removed the // from any of these lines, the window will not appear upon compilation.
My output gives me several warnings about declaring variables that I haven't used, but one of them is of real interest, it says "Found conflicts between different versions of the same dependent assembly. (MSB3247)". This warning might not have anything to do with the problem with the window because this warning appears when the window is displayed or not.
Very odd, can anyone help me please. I don't have a clue as to why this should have any affect upon the window appearing or not. Thanks