Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Late Binding Com Object

Posted on 2005-04-18
Medium Priority
Last Modified: 2011-08-18
I have created a com object that has a method and read only property, I need to use this from a html page but I cannot late bind to it. I get "Object required" error when I try the method or property. If I early bind using a VB project then both work... Any ideas why I cant late bind onto the object? In VB the object is created to the correct typename.
Question by:julianpointer
  • 2
LVL 26

Accepted Solution

Russell Libby earned 1000 total points
ID: 13812189
What did you create the COM object based on? (hopefully it was TAutoObject or related)...

To be automation compatible, an AX/COM object must expose an IDispatch interface; this interface exposes the 4 additional methods (above and beyoond IUnknown) that allow a client to call methods/props at runtime, namely through the Invoke method. If you inherited directly from TComObject, TTypedComObject, then these interfaces DO NOT expose an IDispatch interface.


Author Comment

ID: 13829741
I create the com object by createing a  New AvtiveX Library then New Com Object

is this not correct?

Author Comment

ID: 13829783
I used the automation object.... did the trick

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question