原先QString("mystrr"),现在都不认了,必须都要加上L才行
原先:m_conn->put_HttpProxyAuthMethod("Basic");
现在:m_conn->put_HttpProxyAuthMethod(L"Basic");
同理:handle = m_conn->openFile(UUU(strRemote) ,L"writeOnly",L"createTruncate"); 原因是库函数强求
前提:不使用VS2010开始的pragram指令
注意1
if (m_conn->ProxyType=="WEBPROXY") 倒是不必改。加上L反而错误。
原因是三个重载函数里,没有wchar_t*或者QChar*的比较:
bool operator==(QLatin1String other) const
bool operator==(const char * other) const
bool operator==(const QByteArray & other) const
注意2
InsertLog("debug", m_taskname, strAction, tr("try to reconnect again...")); 插入的日志没有问题,说明对标准英文字符自动转成Unicode没有问题。
原因是,编译器以char*读取"de