Late Binding Com Object

Posted on 2005-04-18
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
    LVL 26

    Accepted Solution

    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.

    LVL 3

    Author Comment

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

    is this not correct?
    LVL 3

    Author Comment

    I used the automation object.... did the trick

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now