问题是这样的error C2664: 'clientLib::CommandMgr::AuthenLogin' : cannot convert parameter 3 from 'CSuperLogin *const ' to 'clientLib::IObserver *'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast但是在另外一个工程中同样的方法使用是没有问题的。不知道什么情况?ECMDRetCode CommandMgr::AuthenLogin( const CString& strUser, const CString& strPsw, IObserver* observer )另外一个工程中也是对话框的,这样使用没有问题。
clientLib::CommandMgr::instance()->AuthenLogin( strLogid, strPassword, this );
而我自己新建的对话框工程中,clientLib::CommandMgr::instance()->AuthenLogin( strLogid, strPassword, this );这样调用就报错。为什么呢?