UnicodeString strMychar;
StrMychar=line + '\ 0';
If (STRCMP (strMychar SubString (3, 8) c_str (), "NEWLOG:")!=0)
{
}
CB XE, error: always convert 'would be *' to 'const char *'
How to fix, express, thanks!!!!!!
CodePudding user response:
Unicode problemString plus L said before byte wide
Such as: L "hello";
CodePudding user response:
I'm stupid ah, where to add?CodePudding user response:
Declarations:WideChar * __fastcall c_str () const {return (Data)? Data: const_cast & lt; WideChar * & gt; (L ""); }
The inline int _RTLENTRYF STRCMP (const char * __s1 _FAR, const char * __s2 _FAR)
{
Return __strcmp__ (__s1 __s2);
}
CodePudding user response:
If (STRCMP (strMychar SubString (3, 8) c_str (), L "NEWLOG:")!=0)
{
}
CodePudding user response: