Going nuts here.....

Ok...I have scoured the Internet from MSDN to Google trying to find the answer to this one....

As I am new to the whole DirectX scene, I was viewing the Webcast for using C# with DirectX in game development, namely the Star Trooper game, if anybody has seen that one.

I originally could not build the downloaded projects without many errors, but I installed the April sdk and now I can build all of them. The Problem is that when I Publish, I can no longer run the program...I get an error in:
 
clr20r3
p4 microsoft.directx.direct3dx
exception code 0xe0434f4d

FYI I have win xp pro, c# express, Directx9.0c, net 2.0 framework, april and oct sdk installed.

It just seems weird that I can debug but not publish a working example.
And just to add to it the actual exe files (downloaded with project) run ok.
If this made any sense, maybe somebody has a clue :o)


Answer this question

Going nuts here.....

  • mylaputa

    Oh yea, sorryTongue Tied

    I guess I should have clarified that a little....actually, I am building  an installer.
     But I wouldn't dream of giving it to anybody else until it would run on my own machine! :o)

    That's the weird part...I can build it fine, and it works flawlessly (it should, since I didn't change the code from the downloaded project). But when I publish the file (making a redistributable) and run it on MY (the same) machine OUTSIDE of the IDE it installs and tries to run, gives me the error and the option to report the error to MS(of course).Big Smile

    Crazy, man.CRAZY!


  • M_Lahlouh

    I assume by publish you mean build an installer so that it can be used on another machine.

    TO make a managed DirectX application work on another machine you have to ensure that the .Net framework is present, the DirectX9 core files and the matching D3DX and MDX files that the application was built against. There are no tutorials I know of but the SDK has a help topic about building the redistributable files and adding DXsetup into your installer.

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directx/directsdk/ProgrammingGuide/InstallingWithDirectSetup.asp

    If you mean something else by publish can you explain better



  • Krishnan Margabandhu

    Man you are a GENUIS!!

    Or else I am just REALLY STUPID......Tongue Tied
    Nah, we'll go with you being a GENUISBig SmileBig Smile

    The resources for the sounds/music folder was not there....I didn't catch it and I never saw that option in the publish options but I am sure I can figure it out now....You are great!!!

    Thanx again

    Paul

  • MTennants

    Can you run it by clicking on the EXE in the DEBUG or RELEASE directory after you compile

    If its runs OK from there maybe there are some dependant files that need to be on a certain path that can't be found once the EXE is in a different place. Look through the code or maybe use filemon from http://www.sysinternals.com to see what file is missing





  • Going nuts here.....