Newbie to pointers
<p>I need to put <code>cs</code> value inside the bracket for the object <code>client</code>. I have already handle the <code>cs</code> variable like this:</p>

<pre><code>CString cs (bar_-&gt;GetHostName());
</code></pre>

<p>But still fail to put the value inside this below code:</p>

<pre><code>WinHttpClient client(/* dont know what value to put here */);   
client.SendHttpRequest();
</code></pre>

<p>Error message:</p>

<pre><code>Error   1   error C2664: 'WinHttpClient::WinHttpClient(const std::wstring &amp;)' : cannot convert parameter 1 from 'const char [15]' to 'const std::wstring &amp;' c:\test.cpp
</code></pre>

<p>edit :</p>

<pre><code>   CString cs (bar_-&gt;GetHostName());
   WinHttpClient client(/*??*/);
   client.SendHttpRequest();
   wstring httpResponseHeader = client.GetHttpResponseHeader();
   wstring httpResponse = client.GetHttpResponse();
   writeToStorage(httpResponse.c_str());
</code></pre>

<p>My function <code>writeToStorage</code> suppose to write something to a textfile. It seems, overwriting the file with no strings in it.. I dont know why :(</p>
