error C2440: '=' : cannot convert from

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All

Im geting the compiler error

error C2440: '=' : cannot convert from 'short (__thiscall CMSComm::*)(void)' to 'short

on this line

sCommEvent = m_ctlMSComm.GetCommEvent

sCommEvent is a short and m_ctlMSComm is the control varable for the MSComm ActiveX contro

is this error saying it cant convert from a short to a short

im using VC++

Cherrs Keti
 
Ketil B said:
Hi All

Im geting the compiler error

error C2440: '=' : cannot convert from 'short (__thiscall CMSComm::*)(void)' to 'short'

on this line

sCommEvent = m_ctlMSComm.GetCommEvent;

sCommEvent is a short and m_ctlMSComm is the control varable for the MSComm ActiveX control

is this error saying it cant convert from a short to a short.

im using VC++ 6

Just guessing, but try...

sCommEvent = m_ctlMSComm.GetCommEvent();
 
Back
Top