Hi!
I am working with CString and i got a ptoblem with it.
I declared an array of strings:
This results in an error ::Code:char *Regs16[10]={"ax","bx","cx","dx","bp","sp","di","si","cs","ds"}; //then I declared: CString TempStr = ListLines[NumLines-1].Operand; int NIndexComma=TempStr.Find(','); CString TempLeft=TempStr.Left(NIndexComma); CString TempRight=TempStr.Right(NIndexComma); //Then I started comparisions like this: if (TempLeft.CompareNoCase(Regs16[i])
Error 8 error C2664: 'ATL::CStringT<BaseType,StringTraits>::CompareNoCa se' : cannot convert parameter 1 from 'char *' to 'const wchar_t *' c:jayasm\jayasm.cpp 123.
What is this error and how can I handle it? I am working on 2005visual studio.
I tried putting a _T and also tried putting an L before the Reg16[i] variable.
But did not work.
Thankyou.



LinkBack URL
About LinkBacks


