D3DX11CompileFromFile unknown error

Ok, so I've been trying to figure out an exception I'v been getting. First it was an error that returned an access error, but I've been able to trace it back to this.

1
2
    hr = D3DX11CompileFromFile(L"Effects.fx", 0, 0, "VS", "vs_4_0", 0, 0, 0, &VS_Buffer, 0, 0);
    hr = D3DX11CompileFromFile(L"Effects.fx", 0, 0, "PS", "ps_4_0", 0, 0, 0, &PS_Buffer, 0, 0);


I'm trying to compile the shades for a DX11 Tutorial and ran into the error that simply states

' An undetermined error has occured'.

From my error check.

Of what I've found I think the problem is in the VS, PS, VS_Buffer, and PS_Buffer being uninitialized(set to null but otherwise not there). I've tried to allocate space to the variables but it says I can't do that. I've been trynig to solve this for the better half of a day and have gotten nowhere.

Any help would be appriciated.
Topic archived. No new replies allowed.