Problem with ActiveX method name

Hi programmers:

I created an ActiveX control (MyCtr) using MFC ActiveX Control wizard. Then I added a member function called SetPort:

void CMyCtr::SetPort(int PortNumber)

The problem is that when I try to use this control in another MFC project using the following code:


...the following error arises:

error C2039: 'SetPortA' : is not a member of 'CMyCtr'

So my question is: Why is the compiler appending the 'A' at the end of the method name?? What can I do to overcome this problem??
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!