Thread View: borland.public.cppbuilder.database.multi-tier
3 messages
3 total messages
Started by John Graham ( SALTS Central )
Thu, 07 Jun 2001 11:49
How to use the dispatch interface in BCB5
Author: John Graham ( SALTS Central )
Date: Thu, 07 Jun 2001 11:49
Date: Thu, 07 Jun 2001 11:49
26 lines
2115 bytes
2115 bytes
Hi, Can anyone tell me how to bind the dispatch interface of a MIDAS application server running on a remote server to my client application? The client and app server were developed on a PC running Win 2000 using BCB5 Enterprise. I have developed the same app. using BCB4 and have no problem binding the dispatch interface and using the resultant object to access application server methods that I wrote. Can't seem to make it work using BCB5 though. Both versions of this app. employ TSocketConnection objects with ScktSrvr.exe running on the remote machine. The BCB5 client will start the BCB5 app. server on the remote machine, but errors out when the attempt is made to bind the dispatch interface to the client. I have googled and newsgrouped myself to death and am not getting anywhere. Every example I've found so far uses both client and app. server running on the same machine. That works, but that's not what I want to do, and that's not the purpose of this technology. I want to be able to run my client app. from anywhere in the world. In case there's some doubt out there, I have two server licenses which make it legal for me to install the app. server on two different file servers.
Re: How to use the dispatch interface in BCB5
Author: John Graham
Date: Sun, 10 Jun 2001 12:55
Date: Sun, 10 Jun 2001 12:55
47 lines
2978 bytes
2978 bytes
It's me again with some additional data. The Midas\Adhoc example provided with BCB5 doesn't work either. That is, it works as long as I run both the client and app. server on the same machine, but when the app. server is deployed to my NT 4x workstation, no go. This time I followed the instructions to the letter for deployment contained in the paperwork I got with my licenses using InstallShield. I've been unable to call my app. server methods either through IDispatch or IAppServer using Bind() as well as CoClassCreator::Create(). Someone out there MUST be using BCB 5 to develop nTier apps. with the app. server running on a different machine. I've run out of string and could sure use some help. Regards, John "John Graham ( SALTS Central )" wrote: > Hi, > > Can anyone tell me how to bind the dispatch interface of a MIDAS application > server running on a remote server to my client application? > > The client and app server were developed on a PC running Win 2000 using BCB5 > Enterprise. > > I have developed the same app. using BCB4 and have no problem binding the > dispatch interface and using the resultant object to access application > server methods that I wrote. Can't seem to make it work using BCB5 though. > Both versions of this app. employ TSocketConnection objects with > ScktSrvr.exe running on the remote machine. > > The BCB5 client will start the BCB5 app. server on the remote machine, but > errors out when the attempt is made to bind the dispatch interface to the > client. > > I have googled and newsgrouped myself to death and am not getting anywhere. > Every example I've found so far uses both client and app. server running on > the same machine. That works, but that's not what I want to do, and that's > not the purpose of this technology. I want to be able to run my client app. > from anywhere in the world. > > In case there's some doubt out there, I have two server licenses which make > it legal for me to install the app. server on two different file servers.
Re: How to use the dispatch interface in BCB5
Author: onat TAKAK
Date: Tue, 12 Jun 2001 07:45
Date: Tue, 12 Jun 2001 07:45
80 lines
3485 bytes
3485 bytes
To access a Dispatch interface of your remote compnent use the following
Lines
IMyComponent * aComponent;
aComponent = LPDISPATCH(DComConnection1->ApPServer);
IMyComponentDisp MyDisp(aComponent);
MyDisp.DoSomething();
"John Graham" <jgraham@salts.navy.mil> wrote in message
news:3B236E44.3E381203@salts.navy.mil...
> It's me again with some additional data.
>
> The Midas\Adhoc example provided with BCB5 doesn't work either. That is,
it
> works as long as I run both the client and app. server on the same
machine, but
> when the app. server is deployed to my NT 4x workstation, no go. This
time I
> followed the instructions to the letter for deployment contained in the
> paperwork I got with my licenses using InstallShield.
>
> I've been unable to call my app. server methods either through IDispatch
or
> IAppServer using Bind() as well as CoClassCreator::Create().
>
> Someone out there MUST be using BCB 5 to develop nTier apps. with the app.
> server running on a different machine. I've run out of string and could
sure
> use some help.
>
> Regards,
> John
>
>
> "John Graham ( SALTS Central )" wrote:
>
> > Hi,
> >
> > Can anyone tell me how to bind the dispatch interface of a MIDAS
application
> > server running on a remote server to my client application?
> >
> > The client and app server were developed on a PC running Win 2000 using
BCB5
> > Enterprise.
> >
> > I have developed the same app. using BCB4 and have no problem binding
the
> > dispatch interface and using the resultant object to access application
> > server methods that I wrote. Can't seem to make it work using BCB5
though.
> > Both versions of this app. employ TSocketConnection objects with
> > ScktSrvr.exe running on the remote machine.
> >
> > The BCB5 client will start the BCB5 app. server on the remote machine,
but
> > errors out when the attempt is made to bind the dispatch interface to
the
> > client.
> >
> > I have googled and newsgrouped myself to death and am not getting
anywhere.
> > Every example I've found so far uses both client and app. server running
on
> > the same machine. That works, but that's not what I want to do, and
that's
> > not the purpose of this technology. I want to be able to run my client
app.
> > from anywhere in the world.
> >
> > In case there's some doubt out there, I have two server licenses which
make
> > it legal for me to install the app. server on two different file
servers.
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads