CRelativePaths v1.05

Welcome to CRelativePaths, a C++ class to convert to and from relative paths, This is similar to how Visual Studio stores filenames in a project / workspace. This means that you can copy a project to a different drive and recompile without problems.

Copyright
History
Usage
Contacting the Author

 

 

 

Copyright

 

 

History

v1.05 (15 April 2022)

v1.04 (17 March 2020)

v1.03 (15 December 2018)

1 May 2017

v1.02 (28 June 2015)

v1.01 (28 December 2006)

v1.0 (7 April 2003)

 

 

 

Usage

To use the class simple #include RelPaths.h to your project. Then you can use the 2 key functions CRelativePaths::AbsoluteToRelative and CRelativePaths::RelativeToAbsolute in your code just like in the sample app's module "main.cpp".

Included with the download is a very simple VC 2017 app which exercises the functions using various legal and illegal path values.

 

 

 

Contacting the Author

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
15 April 2022