C2664 cannot convert parameter 3 from LPCWSTR to WCHAR

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Can some help me fix this error:<br/>
<span style="font-size:x-small <span style="font-size:x-small error C2664: ReadTheFile : cannot convert parameter 3 from LPCWSTR * to WCHAR **
<span style="font-size:x-small <span style="font-size:x-small This happens in the line below:
LPCWSTR m_pszwFileText;<span style="font-size:x-small <span style="font-size:x-small <br/>
<span style="font-size:small <span style="font-size:small hr = ReadTheFile( inFileName, &bIsUnicode, &m_pszwFileText );
<span style="font-size:small <span style="font-size:small The error is with &m-pszwFileText<br/>
<br/>


View the full article
 
Back
Top