[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
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
Medium Priority
?
266 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 70 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

649 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