mfc application -converting from mbcs to unicode - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


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

vkm1984vkm1984 Posts: 2Member
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.


CString dw=GetStringfromRowCol(nRow,nCol,nSheet);
Trace1(_T("xf index used %x
SetAt(dw,pM);--- -----here i am getting that error

can any one help how to solve this problem

Sign In or Register to comment.