title: C++ wcstombs_s not working as it should, according to tutorial
body: <p>I am going through a tutorial on using Direct3D in C++, and it's been going great and i've been at it for a couple of hours, this is the first bug. I am obviously happy i have had no problems what so ever until now but this wcstombs_s stuff does not seem to work properly at all, i wrote like this:</p>
  <pre><code>error = wcstombs_s((size_t)&amp;stringLength, (char)m_videoCardDescription, (size_t)128, (const wchar_t)adapterDesc.Description, (size_t)128);
  </code></pre>
  <p>According to the tutorial i should not even have to do the (varType) thing, but since it didn't want to work at all, i though it would be necessary to make sure i was following the format instructions Visual Studio gave me, doesn't work still, gives me the message</p>
  <pre><code>no instance of overloaded function &quot;wcstombs_s&quot; matches the argument list
  argument types are: (size_t, char, size_t, wchar_t, size_t)
  </code></pre>
  <p>[EDIT]I also tried doing this to make sure i did nothing wrong with the formatting of the variables:</p>
  <pre><code>size_t st0;
  char c0;
  size_t st1;
  const wchar_t wct0 = 0;
  size_t st2;
  int test = wcstombs_s(&amp;st0, c0, st1, wct0, st2);
  </code></pre>
  <p>Guess what? Did not work either!
  This is driving me nuts, please help.</p>