I can not open and image using the SFML library

試著忘記壹切 提交于 2019-11-29 17:32:25

By default, Visual Studio consider project directory the working directory.

If I'm not wrong, D:\Visual Studio projects\MandelbrotProject\MandelbrotProject\ in your case. You should ensure your test15.bmp is inside that directory.

Just in case, you can check which one is your $(ProjectDir) by opening Project Properties->Configuration Properties->Output Directory (any field can be used). Click on the drop-down arrow and Edit. Open Macros and write $(ProjectDir)

More info about VS macros

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!