{I+=codeWee;}
[C++] Get Relative Path

#include "Shlwapi.h"

#pragma comment(lib , "Shlwapi.lib")

void GetRelativePath(const char* szFromDirectory, const char* szToFile, char* szOut)
{

    PathRelativePathTo(szOut,
                       szFromDirectory,
                       FILE_ATTRIBUTE_DIRECTORY,
                       szToFile,
                       FILE_ATTRIBUTE_NORMAL);

}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.