On 16 Feb, 10:08, mosfet <richo...@free.frwrote:
class CSyncClient
{
public:
CSyncClient(void);
virtual ~CSyncClient(void);
//DECLARE_PROPERTY(Login, char*);
friend class Login_;
template<class TYPE>
struct Login_ : public BaseProperty<TYPE>
{
virtual void putprop(TYPE p_Value)
{
CSyncClient::m_pSyncClientSession->SetLogin(p_Value);
What are you trying to do in the line above? m_pSyncClientSession is
not a static member of CSyncClient. Every CSyncClient has its own
m_pSyncClientSession member. If you want to use the
m_pSyncClientSession member, you need a CSyncClient object because
inside a CSyncClient object is the only place an m_pSyncClientSession
member exists.
}
};
struct Login_<char*Login;
protected:
CSyncClientSession* m_pSyncClientSession;
};
It's not clear what you are trying to do, but at a wild guess it looks
like maybe the put_prop function should be in the CSyncClient class.
template <typename TYPE>
virtual void put_prop(TYPE p_Value)
{
m_pSyncClientSession->SetLogin(p_Value);
}
Gavin Deane