iPass = 0;
cPasses = passes;
D3DXCreateEffectFromFile(m_d3dDevice,path,NULL,NULL,0, NULL,&anEffect,NULL);
[color=#ff0000]this->anEffect->FindNextValidTechnique(NULL,&hTech);
they are a part of the model class and without the fx code,it all works properly,this is the tutorial that i read about fx files from: http://www.toymaker.info/Games/html/effects_files.html
also when I open an example solution from the SDK and i replace the example .fx in it with another .fx(i've tried replacing it with ones I downloaded as well as ones I made with FX Composer) and it too crashes.Is there some other source where I can learn about using .fx files?I never imagined that would be the hardest part of the 3d engine.