Solved

Delphi5's mts question,I am so sorry for I have only 75 points because I am new to this site

Posted on 2001-07-17
2
254 Views
Last Modified: 2010-04-06

I had write a mts data module and a client application. In mts,there are
three object: adoconnection,adoquery,datasetprovider. The purpose of them is
retrieve data from Oracle 8.0.5 .

The client application is like the following statement:

procedure TForm1.Button1Click(Sender: TObject);
var
IServer:IUnknown;
appobj:TGUID;
iRowCount:Integer;
IData:IAppserver;
Params,OwnerData:OleVariant;
Options:TGetRecordOptions;
sSql:string;
begin
appobj:=stringtoGUID('{6D285EEB-8D30-4685-8FDB-247163FA8998}')
IServer:=CreateRemoteComObject('first',AppObj);//'first' is my server's
name
sSql:='select * from sys.catalog';
iRowCount:=0;
Options:=[grMetaData,grReset];
try
IData:=IServer as IAppserver;//when this program run on a computer
which's name is not firstshine, error message 'interface not supported'
appears at this line.
except
on e:eintfcasterror do
showmessage('asiyxgl_cx '+e.message);
end;


ClientDataset1.data:=IData.AS_GetRecords(AppProvider,-1,iRowCount,byte(Optio
ns),sSql,Params,OwnerData);
end;

At first,I run Client application and mts on my application server which's
name is 'firstshine',they work correctly. But,when I run client application
on another computer,it don't work.when IData:=IServer as IAppserver is
executed,'Interface not supported' appear.I don't know how can i do.
0
Comment
Question by:firstshine
  • 2
2 Comments
 
LVL 21

Accepted Solution

by:
ziolko earned 35 total points
ID: 6292344
Two most possible reasons:
#1: you are trying to run client app on computer where your app is not correctly deployed
#2: it's security problem between "client" machine and "server" machine
ziolko.
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6292350
one more thing to correectly delpoy app that uses IAppServer interface You need DBClient.dll, stdvcl40(50).dll and MIDAS.DLL.
ziolko.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 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