gpt4 book ai didi

c++ - 智能感知 : a value of type "IDeviceServer *" cannot be assigned to an entity of type "IDeviceServer *"

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:34:31 24 4
gpt4 key购买 nike

我真的无法理解这个错误。请帮助我。代码是:

m_pIServer = new IDeviceServer(this);

声明是:

class IDeviceServer : public IOPCServer
{
public:
IDeviceServer( LPUNKNOWN );
...

IDeviceServer *m_pIServer;

什么意思:“IDeviceServer *”类型的值不能分配给“IDeviceServer *”类型的实体?看不懂。

最佳答案

通常发生在您在泛型类/方法中重新定义类并传入旧类的对象时。

关于c++ - 智能感知 : a value of type "IDeviceServer *" cannot be assigned to an entity of type "IDeviceServer *",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7147456/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com