Original Post
Im having a strange situation. A week ago reinstalled my PC and installed the April SDK. Befor that I used the Februari SDK. Now i, having some strange errors/problems. I did change a few things in the code but its not much. D3DXCreateEffectFromFile fails and d3dBuffer is NULL(0x00000000) so I cant even see what the error message is. The program crashes at MessageBox(); [SOLVED] I dont know how/when/why but the "Working directory" was set to default and i use an \OutPut\.. [Edited by - D3DXVECTOR3 on August 10, 2005 6:10:49 PM]
LPD3DXBUFFER l_d3dBuffer;
file is type std::string and has a valid path to the effect. the effect is not compiled (i have always used it for quick editing) "loading.fx"
// Create the effect
if FAILED(D3DXCreateEffectFromFile(pd3dDevice, file.c_str(), NULL, NULL, 0, NULL, &m_pd3dEffect, &l_d3dBuffer))
{
// Show Error message
MessageBox(NULL, (const char *)l_d3dBuffer->GetBufferPointer(), "Critical Failure", MB_OK);
}