Error in effect file

I am using c for my directx programming.

I am getting some errors in my effects file.  I know this because when I try to create effect from file I ge an error.  I do not know how to find exactly what is wrong with the effects file.  Is there a way to print out these messages or get a direct compilation message


Answer this question

Error in effect file

  • webxtasy

    is there a way to step througth the effects file

  • fadiz

    thanks for the tip. method 3 worked.  below is a link to an example of how to set it up.

    http://www.garagegames.com/index.php sec=mg&mod=resource&page=view&qid=8205

  • trggr_happy_jack

    There are three ways:

    1. Depending on which function you're calling, you should be able to get back a LPD3DXBUFFER as the last parameter - I'm pretty sure the contained pointer just casts back to a char* which you can then inspect at your leisure.

    2. Provided the effect comes from a file, you can use the fxc tool to manually compile it via a command-prompt. This should give you the same list of errors as #1 will.

    3. This is my preferred way is to add #2 as a "custom build step" in visual studio - that way it will compile when you build the project, and any errors will be flagged up the same as regular compile errors. Double-clicking will even open the file and jump to the erronous line!

    hth
    Jack


  • Error in effect file