Error Messages/42772

< Error Messages
Revision as of 21:30, 16 March 2015 by Lchrisman (talk | contribs) (Created page with "= Example error message = :The ''Insert'' method cannot be called because the COM object does not have a method with that name. = Description = You are calling a COM method...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example error message

The Insert method cannot be called because the COM object does not have a method with that name.

Description

You are calling a COM method -- for example:

obj->Insert(5)

where obj might have been instantiated from COMCreateObject. Or you may be calling it using

COMCallMethod(obj,"Insert")

In either case, the object doesn't have a method with that name (no Insert method in this case).

Low-level technical Details

The COM objects used by Analytica must be automation objects, which means the implement the IDispatch interface. To bind to the method given the method name, Analytica calls IDispatch::GetIDsOfNames. This message indicates that the object returned DISP_E_UNKNOWNNAME, which means it doesn't recognize the name.

See Also

Comments


You are not allowed to post comments.