Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
mfc application -converting from mbcs to unicode
hi friends i am facing error while converting the code from mbcs to uniccode.
i am getting the error in SETat();
error 2664 setat cannot convert parameter 1 from class cstring to const char *
if i convert from cstring to const char i am getting this error.
D:PROGRAM FILESMICROSFT VISUAL STUDIOVC98MFCINCLUDEAfxtempl.h:error 2664 setat cannot convert parameter 1 from class CString to const char*
no user defined conversion operator available that can perform this conversion or the operator called.
here they have used the syntax as
void setat(ARG_KEY key,ARG_VALUE new value) in program.
Trace1(_T("xf index used %x
SetAt(dw,pM);--- -----here i am getting that error
can any one help how to solve this problem
0 · ·