
Runtime Error 438 when using VS2005 C++ATL control with VB6 form
I'm getting a Runtime Error 438: Object doesn't support this property or
method when attempting to call a method on an ATL control created using
VS2005 using a VB6 form. Events from the control are accepted correctly but
I cannot call any of the methods in the control from the VB program without
getting the above error. I ported the app to VB.net and it works as
expected.
The methods are defined in the IDL for the ATL C++ control. Using the
ObjectBrowser I can see the methods and the correct signatures. If I add the
control to the ActiveX Control Test Container, though, i cannot call the
methods there either.
The IDL for the control has the dual and the oleautomation attributes.
What could I be doing wrong?