R
renbin
Now I have a problem. I have some code like this:
void SetFieldName(LPCTSTR lpszNewValue)
{
char szFieldName[11];
strcpy(szFieldName,lpszNewValue);
}
When I debug it,the System tells me
"Error 1 error C2664: 'strcpy' : cannot convert parameter 2 from 'LPCTSTR'
to 'const char *' e:\MapControlTest\Map\MapTableDesc.cpp line 74"
Please tell me where my code wrong,thank you.
void SetFieldName(LPCTSTR lpszNewValue)
{
char szFieldName[11];
strcpy(szFieldName,lpszNewValue);
}
When I debug it,the System tells me
"Error 1 error C2664: 'strcpy' : cannot convert parameter 2 from 'LPCTSTR'
to 'const char *' e:\MapControlTest\Map\MapTableDesc.cpp line 74"
Please tell me where my code wrong,thank you.