   File Not Found
if(FAILED(D3DXLoadMeshFromX("..\\Temp_Human.x", D3DXMESH_SYSTEMMEM, g_pd3dDevice, NULL, &Human_Buff_Mats, NULL, &Human_Mats_Num, &Human))){MessageBox( NULL, "FAIL Missing Important Game file that is used when paused. Where could it be? If this is a test version just contact the creator for the file or about the problem. If this is the final version try reinstalling or contacting the creator.", "Game", MB_OK );return;}Whenever I try to run my game I get this error, this is the first mesh I'm trying to render, I've put the file in every folder within the project. Am I supposed to put it somewhere else or is my programming wrong. I'm using Visual C++ 2008   
  Well the first step is to find out exactly why D3DXLoadMeshFromX is failing. It could be because the file couldn't be found, or it could be something.  Enable the debug runtimes through the DX Control Panel, and see what information it gives you when that call fails.;  HRESULT: 0x00000003 (3)Name: ERROR_PATH_NOT_FOUNDDescription: The system cannot find the path specified.Severity code: SuccessFacility Code: FACILITY_NULL (0)Error Code: 0x0003 (3)HRESULT: 0x00000005 (5)Name: ERROR_ACCESS_DENIEDDescription: Access is denied.Severity code: SuccessFacility Code: FACILITY_NULL (0)Error Code: 0x0005 (5)   ;  Dump somewhere (MessageBox, stdout, stderr, somewhere) the path of the working-directory, i.e. the directory which your application is running in. From that path you have given, the file must be exactly in the directory above the application's working directory (".." == one directory up, "." == current directory").Just do see that loading works at all, you could give D3DXLoadMeshFromX() the absolute path.   ;  I inserted the full path and am still getting File Not Found.   ;Quote:Original post by UpinflamesI inserted the full path and am still getting File Not Found.Have you tried out more portable paths with slashes instead of backslashes?E.g. replace "Folder\\Folder\\file.txt" with "Folder/Folder/files.txt"   ;Quote:Original post by phresnelHave you tried out more portable paths with slashes instead of backslashes?E.g. replace "Folder\\Folder\\file.txt" with "Folder/Folder/files.txt"Is there any practical difference between those two methods?\\ seems more natural for me (on Windows).   ;Quote:Original post by Tom KQTQuote:Original post by phresnelHave you tried out more portable paths with slashes instead of backslashes?E.g. replace "Folder\\Folder\\file.txt" with "Folder/Folder/files.txt"Is there any practical difference between those two methods?\\ seems more natural for me (on Windows).I think there is not really a naturality in both (though '/' is more natural for me), but there are more naming schemes and operating system that use slashes, '/' is supported on Windows (whereas '\' is a valid character on unixes) (sidenote: there exist filesystems where neither '/', nor '\' is used to seperate directories):URIFilenameXPath (admittedly has nothing to with filenames)And somewhere I read about a naming scheme by Microsoft hisself that uses backslashes, but I lack reference now, sorry.The problem with backspaces is that you have to either escape them (or you get really funky filenames that include newlines and bells), or you must make them verbatim (e.g. by using heredoc syntax, e.g. in C# it would go like @"..\filename", so a double backslash a heredoc string will also be a double backslash in the final filename).On windows, there is indeed not much difference, if used correctly, but the slash is more generic.   ;  Still nothing.   ;  1. Can we see your exact code where you use the full path?2. What do the Debug Runtimes say (In particular, link to d3dx9d.lib)?3. Does it work with a .x file from the SDK samples (In case the X file is corrupt somehow)?4. Does it work if you put the file in the C: root directory?5. Are you running Vista or some other OS?6. Are you running as Administrator?   