Visual Studio C ++ 2010兼容的程序可执行文件找不到文件 [英] Visual Studio C++ 2010 compliled program executable cannot find files

查看:145
本文介绍了Visual Studio C ++ 2010兼容的程序可执行文件找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的.我从Visual C ++ 2008切换到2010.我制作了一个程序,用于加载名为"tiger.x"的文件.从存在可执行文件的目录中.当我从Windows资源管理器(不是Visual C ++)执行程序时. exe文件不能 找到"tiger.x"文件,即使它位于同一目录中.使用Visual C ++ 2008版本不会发生此问题,但在2010年会出现此问题.请帮我.

Okay. I switched from Visual C++ 2008 to 2010. I made a program that loads a file named "tiger.x". from the directory in which the executable file is present. When i execute the program from Windows Explorer(Not from Visual C++). The exe file cannot find the "tiger.x" file even though it is in the same directory. This problem did not occur with Visual C++ 2008 version but in 2010 it is. Please Help me. Its annoying me.

推荐答案

尝试使用FileMon之类的应用程序监视程序的执行.它将告诉您应用程序在哪里探测文件.
Try to monitor the program's execution with an application like FileMon. It will tell you where the app is probing for the file.


这篇关于Visual Studio C ++ 2010兼容的程序可执行文件找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆