So I'm following this tutorial here (http://www.rastertek.com/dx11s2tut03.html) to setup a DX11 framework in C++ so that eventually I can create a graphics engine.
Now the issue persists upon this code:
// Convert the name of the video card to a character array and store it.
error = wcstombs_s(&stringLength, m_videoCardDescription, 128, adapterDesc.Description, 128);
if(error != 0)
{
return false;
}
I've never used wcstombs_s before but upon reading it I think I'm using it correctly... (Even copy pasted it flags as an error but I typed it out manually the first time since I tend to learn a bit better that way)
The issue is that I get an error of:
No instance of overloaded function "wcstombs_s" matches the argument list. Argument types are: (unsigned long long*, char[128], WCHAR[128], int).
I've tried trimming it down to a 3 variable instance of the function... For reference:
http://www.cplusplus.com/reference/cstdlib/wcstombs/
Following this. And it still comes up with the no instance of overloaded function.
Has anyone got any advice on using wcstombs_s/can see the issue that I can't in the code I followed?
Now the issue persists upon this code:
// Convert the name of the video card to a character array and store it.
error = wcstombs_s(&stringLength, m_videoCardDescription, 128, adapterDesc.Description, 128);
if(error != 0)
{
return false;
}
I've never used wcstombs_s before but upon reading it I think I'm using it correctly... (Even copy pasted it flags as an error but I typed it out manually the first time since I tend to learn a bit better that way)
The issue is that I get an error of:
No instance of overloaded function "wcstombs_s" matches the argument list. Argument types are: (unsigned long long*, char[128], WCHAR[128], int).
I've tried trimming it down to a 3 variable instance of the function... For reference:
http://www.cplusplus.com/reference/cstdlib/wcstombs/
Following this. And it still comes up with the no instance of overloaded function.
Has anyone got any advice on using wcstombs_s/can see the issue that I can't in the code I followed?