error C2440: '=' : cannot convert from

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
 
J

Jeff Partch [MVP]

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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top