RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomObjectBroker.GetComputerForProgID Method

Returns the machine name, URL, host name, or IP address of a server machine that supports an interface identified by its class name.

Pascal
function GetComputerForProgID(const ProgID): string; virtual; abstract;
C++
virtual __fastcall AnsiString GetComputerForProgID(const  ProgID) = 0;

Call GetComputerForProgID to obtain the name or address of a server machine on which a given interface is registered. The ProgID parameter specifies the name of the desired interface. If the server was created using one of the remote data module wizards, this is the value that was entered as the class name for the wizard. 

TCustomObjectBroker declares GetComputerForProgID as an abstract (pure virtual) method. It is implemented in descendant objects that return a string designed to work with a particular connection component. 

Connection components can call this method, passing in the value of their ServerName property. They can use the return value to set the ComputerName, URL, Host, or Address property, as appropriate. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!