Is there a function that returns the fully qualified path name for any entered file?
I am thinking of something like:
LPCSTR path = "foo.bar" LPCSTR fullPath = FullyQualifiedPath(path); //fullPath now equals C:\path\to\foo.bar
thank
In Win32, call the function GetFullPathName.
GetFullPathName
Use boost :: filesystem http://www.boost.org/doc/libs/1_44_0/libs/filesystem/v2/doc/index.htm
#include <iostream> #include <boost/filesystem.hpp> int main() { boost::filesystem::path p = boost::filesystem::complete("foo.bar"); std::cout << p; }
Source: https://habr.com/ru/post/1770834/More articles:Test-based development for SQL code - tddArtificial Intelligence and Chat Filters - filterCan I make R # intellisense select the first item in a list? - resharperHow long does the new indicator appear next to a SharePoint 2010 task? - sharepointhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1770833/twitter-oauth-and-a-win32-exe-desktop-application&usg=ALkJrhjcpo7qcLa13W2dtLOrxxmeF4lRQAJava Method Naming Conventions - javaConditional HTML for target mode ie8 quirks - htmlDo I need to rebuild SQL Server database indexes? - sql-serverASP.NET MVC 2: Disabled TextBox for DateTime returns null - asp.net-mvc-2Может ли Cygwin получить доступ к Windows Hidden Shares? - cygwinAll Articles