Article View: borland.public.cppbuilder.database.multi-tier
Article #838Re: Socket Connection Problems
From: John Graham
Date: Fri, 19 Jan 2001 11:22
Date: Fri, 19 Jan 2001 11:22
51 lines
2472 bytes
2472 bytes
Thanks to Michael Muller ( sorry I don't have an umlaut ), I can now bind
the dispatch interface to a TsocketConnection object thusly:
AdhcServ.Bind(WideString(SocketConnection1->ServerName));
It would be helpful if the help files contained more examples and/or the
examples actually worked!
John
John Graham wrote:
> Greetings,
>
> I'm having a problem binding the app. server dispatch interface in my
> client app. using a socket connection. The platform is BCB ver. 5
> Enterprise, and the OS is Windows 2000 Professional.
>
> I built the "adhoc" project in \Examples\Midas, which uses a DCOM
> connection and it works fine. When I substitute a socket connection and
> try to bind the dispatch interface to a local object in the client, the
> IsBound() method returns false.
>
> I'm using the socket server executable supplied with BCB5 and both the
> client, socket server, and application server are running on the same
> PC. The code snippet is:
>
> IAdHcDMDisp AdhcServ;
>
> if ( !SocketConnection1->Connected )
> {
> SocketConnection1->Connected = true;
> }
>
> AdhcServ.Bind(SocketConnection1->GetServer());
>
> if ( !AdhcServ.IsBound() )
> {
> ShowMessage("Can't Bind - Aborting!");
>
> SocketConnection1->Connected = false;
>
> return;
> }
>
> The application server fires up normally, but the Bind() method fails.
> Hope someone can put me on the proper path.
>
> Regards,
> John
Technical Details
Message-ID:
<3A682366.C7D4B0A2@salts.navy.mil>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!163.12.6.113References:
<3A605B82.E57D7AEB@salts.navy.mil>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,174ecfd4dd47565 X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-01-19 03:31:21 PST Message-ID: <3A682366.C7D4B0A2@salts.navy.mil> Date: Fri, 19 Jan 2001 06:22:14 -0500 From: John Graham <jgraham@salts.navy.mil> Organization: SALTS Central X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Re: Socket Connection Problems References: <3A605B82.E57D7AEB@salts.navy.mil> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 163.12.6.113 X-Trace: 19 Jan 2001 03:20:51 -0800, 163.12.6.113 Lines: 52 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!163.12.6.113