×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Late binding of MTS components in Delphi

Late binding of MTS components in Delphi

Late binding of MTS components in Delphi

(OP)
Can someone explain how to use late binding tecnique for accessing MTS objects (from remote machine) in Delphi?

I can do with early binding, but as far as I know (from discussion on this site), this is not the best solution for accessing and using MTS objects.

Thanks,
Frenk

RE: Late binding of MTS components in Delphi

Suppose you use TDCOMConnection to connect to MTS component

.....
with DCOMConnection do
try
   Connected := True;
   AppServer.MyMethod(...);        //late binding
finally
   Connected := False;
end;
.....
I think late-binding is flexible but not high performance!

Regards!

I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

zallen@cmmail.com
ICQ:101229409

RE: Late binding of MTS components in Delphi

(OP)
Is any possibility to do work without TDCOMConnection (I assume, that this component is a part of Delphi Enterprise)

RE: Late binding of MTS components in Delphi

You can use windows API instead of TDCOMConnection.But it is not easy to use as TDCOMConnection.See TDCOMConnection's source code in D5 enterprise version to figure it out.

Regards!

I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

zallen@cmmail.com
ICQ:101229409

RE: Late binding of MTS components in Delphi

(OP)
How to change between interfaces in late binding? (our componenth have a 3 interfaces)

RE: Late binding of MTS components in Delphi

One component and one interface(default) is a good solution.

Under your situation you can user QueryInterface to locate the interface you want.Because the IUnknown must be implemented by all COM components.
But in this way you shoud register the component so late binding doesnot work :(

Maybe i  am wrong !

I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

zallen@cmmail.com
ICQ:101229409

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close