Hi, this is driving me over the edge... I can't find the fault in this code, i hope you can help me.
This runs absolutely without error if i have the directx sdk installed, i've had it running on 3 machines with the sdk on it, but i want it to run on machines without the damned sdk. If there isn't an sdk on the machine, then this line of code:
Microsoft.DirectX.Direct3D.
Font d3dFont = new Microsoft.DirectX.Direct3D.Font(renderDevice, 12, 0, FontWeight.Normal, 0, false, CharacterSet.Default, Precision.Default, FontQuality.Default, PitchAndFamily.DefaultPitch, "Arial");
Results in this hopeless error:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in ParPhysDirectX.exe
Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I must be missing some kind of assembly, dll or whatever, i just don't have any clue as to where to look.... Arial is installed on the machine where i'm trying to run the app. All machines involved are running windows xp with directx9.0c installed. I get the same error if i try and load it like this:
System.Drawing.
Font winFont = new System.Drawing.Font(FontFamily.GenericSansSerif, 14);
Microsoft.DirectX.Direct3D.Font d3dFont = new Microsoft.DirectX.Direct3D.Font(renderDevice, winFont);