Unicode C++
Unicode C++
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat Unicode C++ Downloads
#include <CkHttpW.h>
void ChilkatSample(void)
{
CkHttpW http;
// Establish 2 cache root directories.
http.AddCacheRoot(L"c:/example/httpCacheA/");
http.AddCacheRoot(L"c:/example/httpCacheB/");
wprintf(L"Number of cache roots: %d\n",http.get_NumCacheRoots());
wprintf(L"1st cache root: %s\n",http.getCacheRoot(0));
wprintf(L"2nd cache root: %s\n",http.getCacheRoot(1));
// Output:
// Number of cache roots: 2
// 1st cache root: c:/example/httpCacheA/
// 2nd cache root: c:/example/httpCacheB/
}