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
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

696 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