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
248 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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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