O
Orbian
I am using an unmanaged pointer and need to take the address of this
and pass it to a function (a pointer to a pointer). If the pointer is
defined as a global variable it will work, however if I move it into a
class variable I get teh following error:
error C2440: 'type cast' : cannot convert from 'IDevMgr *__gc * ' to
'IDevMgr ** '
Basically I want to go from:
IDevMgr *gDev;
public __gc class CMyClass
{
};
to:
public __gc class CMyClass
{
private:
IDevMgr *m_Dev;
};
and then do a:
MyFunc(&m_Dev);
from a member function in CMyClass. MyFunc(&gDev) will work fine
though.
and pass it to a function (a pointer to a pointer). If the pointer is
defined as a global variable it will work, however if I move it into a
class variable I get teh following error:
error C2440: 'type cast' : cannot convert from 'IDevMgr *__gc * ' to
'IDevMgr ** '
Basically I want to go from:
IDevMgr *gDev;
public __gc class CMyClass
{
};
to:
public __gc class CMyClass
{
private:
IDevMgr *m_Dev;
};
and then do a:
MyFunc(&m_Dev);
from a member function in CMyClass. MyFunc(&gDev) will work fine
though.