F
Fausto Lopez
I'm getting the following error:
'strlen' : cannot convert parameter 1 from 'class CString' to 'const char *'
when I try to compile the following code:
HRESULT AnsiToUnicode(CString pszA, LPOLESTR* ppszW)
{
ULONG cCharacters;
DWORD dwError;
// If input is null then just return the same.
if (NULL == pszA)
{
*ppszW = NULL;
return NOERROR;
}
// Determine number of wide characters to be allocated for the
// Unicode string.
cCharacters = strlen(pszA)+1; <-------------------------
..........................
}
Any suggestions as to what the problem might be?
Fausto
'strlen' : cannot convert parameter 1 from 'class CString' to 'const char *'
when I try to compile the following code:
HRESULT AnsiToUnicode(CString pszA, LPOLESTR* ppszW)
{
ULONG cCharacters;
DWORD dwError;
// If input is null then just return the same.
if (NULL == pszA)
{
*ppszW = NULL;
return NOERROR;
}
// Determine number of wide characters to be allocated for the
// Unicode string.
cCharacters = strlen(pszA)+1; <-------------------------
..........................
}
Any suggestions as to what the problem might be?
Fausto