On some of my client's PC's, D3DXCreateEffectFromFile fails regardless of the content of the .fx file.
D3DXCreateEffectFromFile returns an undocumented HRESULT value: 0x8007007E
Parameter ppCompilationErrors is NULL so it's not possible to retrieve any further error information.
It fails on some PC's, but on most it's fine!
So, I have a downloaded an .exe of arbitrary tutorial that shows .fx files and supplied that to the client's with the problem, and that works just fine. That was build on a DirectX version from 2006/2007 (d3dx_30.dll). So it's not about shaders not being supported or something!
I then rebuild that tutorial's project on my IDE (DirectX SDK June 2010), supplied the .exe to the client's experiencing this bug and then the function bugs again!
So, then I thought it might be the different DirectX SDK's.
I decided to download an old DirectX SDK, in my case August 2007.
I compiled the .exe with the old DirectX SDK and then the .exe and effect runs just fine!
D3DXCreateEffectFromFile in SDK 2007: OK
D3DXCreateEffectFromFile in SDK 2010: UNKNOWN FAIL
What black sorcery is causing this!?