Original Post
Hi,
I just switched my development environment to Windows XP 32 bit using Visual C++ 2008 Express and Visual Studio 2010 Professional. When I want to test DX10 Sample tutorial 2, it says it cannot load Tutorial02.fx.
But, when I used Windows 7 with visual studio 2008 / 2010, it can load the effect file. I haven't changed the code from the default sample code.
I am using DXSDK June 2011 and DXSDK August 2007. Both have the same issue. Any help is very much appreciated.
Thanks
I just switched my development environment to Windows XP 32 bit using Visual C++ 2008 Express and Visual Studio 2010 Professional. When I want to test DX10 Sample tutorial 2, it says it cannot load Tutorial02.fx.
But, when I used Windows 7 with visual studio 2008 / 2010, it can load the effect file. I haven't changed the code from the default sample code.
hr = D3DX10CreateEffectFromFile( L"Tutorial02.fx", NULL, NULL, "fx_4_0", dwShaderFlags, 0,
g_pd3dDevice, NULL, NULL, &g_pEffect, NULL, NULL );
if( FAILED( hr ) )
{
MessageBox( NULL, L"The FX file cannot be located. Please run this executable from the directory that contains the FX file.", L"Error", MB_OK );
return hr;
}
I am using DXSDK June 2011 and DXSDK August 2007. Both have the same issue. Any help is very much appreciated.
Thanks