解题王:Could not execute: invalid directory (Win32 error 267)

来源:百度文库 编辑:中财网 时间:2024/04/27 22:10:19

一、

造成这个错误的原因主要是运行别人的程序时,设置不正确.

工程—>设置,问题出在右边“调试”标签的“工作目录”和你现在运行工程的目录不一致

此时需将工作目录改成你现在的工程所在目录

注意:在左边的设置下拉框中,Win32 Release和Win32 Debug都是要改的,看你具体的要求。

二、

今天在调试一个调用ffmpeg函数,而不是库文件实现视频播放功能的时候,出现了如下错误,在网上查了之后,国外有一个论坛中说是因为:

This error comes due to the project settings. In VC++ 6 go to the project and then setting tab. Then go to the debug tab. Cleck the path for the exe amd imp. is check the working directory path.
If this help you in any way pls rate this post.

大致意思看输入输出文件名在VC中设置的是否正确:

setting->link->output file name
setting->debug->general->executable for debug session
看下这两处设置对否


但是我看了输入输出文件名都是对的,没有办法了,最后采用了最笨但是最有效的办法,嘿嘿,直接将工程文件中的.ncb,.plg删除后,重新编译连接通过。。。