Runtime Error 438 when using VS2005 C++ATL control with VB6 form 
Author Message
 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?



Sun, 05 Feb 2012 03:07:01 GMT  
 Runtime Error 438 when using VS2005 C++ATL control with VB6 form


Quote:
> 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?

Try posting to this group:




Sun, 05 Feb 2012 04:52:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Runtime error 438

2. Runtime Error 438 - What does this mean?

3. **** Runtime Error 438

4. Runtime error 438

5. runtime error 438?

6. Runtime Script error 438

7. Activex Runtime Error: 438

8. Runtime error #438

9. Error 438 - Using classes within VB5

10. RT Error 438 Pasting VB Control into Interdev

11. WebBrowser Control - Error 438

12. Data-Control (Error 438)

 

 
Powered by phpBB® Forum Software