Usage instructions added
This commit is contained in:
19
README.md
19
README.md
@@ -4,3 +4,22 @@ Provides additional templates and function helpers for Microsoft Active Template
|
||||
##Building
|
||||
- The _.h_ files can be used individually. However, we do encourage you to include the entire library project and reference it in dependant projects of your solution, as libatl might develop some non-inline code over time.
|
||||
- The _libatl.vcxproj_ requires Microsoft Visual Studio 2010 SP1 and _..\\..\\include_ folder with _common.props_, _Debug.props_, _Release.props_, _Win32.props_, and _x64.props_ files to customize building process for individual applications.
|
||||
|
||||
##Usage
|
||||
1. Clone the repository into your solution folder.
|
||||
2. Add the _libatl.vcxproj_ to your solution.
|
||||
3. Add libatl's _include_ folder to _Additional Include Directories_ in your project's C/C++ settings.
|
||||
4. Add a new reference to libatl project from your project's common properties.
|
||||
5. Include _.h_ files from libatl as needed:
|
||||
```C
|
||||
#include <atlstr.h>
|
||||
#include <atlshlwapi.h>
|
||||
#include <iostream>
|
||||
|
||||
void main()
|
||||
{
|
||||
ATL::CAtlString sPath;
|
||||
PathCanonicalize(sPath, _T("C:\\Windows\\Temp\\test\\.."));
|
||||
std::cout << (LPCTSTR)sPath << std::endl;
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user