XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Deployed app can't open initialize font!?

Last post 5/18/2009 6:04 AM by Brestfloda. 2 replies.
  • 5/17/2009 9:03 PM

    Deployed app can't open initialize font!?

    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);

     

  • 5/17/2009 9:44 PM In reply to

    Re: Deployed app can't open initialize font!?

    This question is about Managed DirectX, which is no longer supported by Microsoft. If you want to include Managed DX with your application, you have to include the runtime in your installer; it's not installed by default on users' machines.
    Finally, this question should go in the DirectX forum, not the XNA forum.

    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
  • 5/18/2009 6:04 AM In reply to

    Re: Deployed app can't open initialize font!?

    Ok, sry. But including it isn't enough... It utilizes something not directly referenced...
Page 1 of 1 (3 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG