Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages
Started by John Graham
Sat, 13 Jan 2001 13:43
Socket Connection Problems
Author: John Graham
Date: Sat, 13 Jan 2001 13:43
Date: Sat, 13 Jan 2001 13:43
38 lines
2069 bytes
2069 bytes
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
Re: Socket Connection Problems
Author: 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
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