2014-01-29 16 views
-2

我需要在C++中的函數來檢查計算機上是否存在給定的路徑/文件名。在窗口中使用文件

任何人都可以幫助我嗎?

+2

正如[C++:這是檢查在Windows平臺上的文件存在的最好方法]的那些另一個possibilty(http://stackoverflow.com/questions/ 4403986/c-which-the-the-best-method-of-check-for-file-existence-on-windows-platform)? –

回答

0

這可能是除了從註釋 PathFileExists

+0

感謝您的良好回答 –

+0

它不適用於我的電腦它顯示此錯誤:未定義的引用'_imp__PathFileExistsA @ 4' –

+0

閱讀文檔。您需要鏈接到「Shlwapi.lib」庫 –

相關問題