🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #643

Re: Problem binding dispatch interface when client runs under WinNT

#643
From: John Graham
Date: Sat, 26 May 2001 16:16
52 lines
2837 bytes
Me again.  I forgot to mention that I have purchased two MIDAS server
licenses for BCB5.  What I got was two pieces of paper with serial number
and authorization key labels on them, but no instructions as to what to do
with the numbers.  I wonder if this is part of the problem?
John

John Graham wrote:

> Help!
>
> I recently ported a BCB4 nTier app., developed on a PC running Win NT,
> to BCB5 running under Win 2000.  Both the client and app. server
> applications run fine on the Win 2000 PC.  However, when I run the
> client on an NT PC, I get an error attempting to bind the dispatch
> interface.
>
> The client uses the Bind() method of the TAutoDriver class this way:
>
>   SMSrvrDisp = new ISysManSrvrRDMDisp();
>
>   SMSrvrDisp->Bind(WideString(SysManScktConnect->ServerName));
>
>   if ( !SMSrvrDisp->IsBound() )
>    {
>      Application->MessageBox("Can't Bind Dispatch Interface -
> Aborting!", "Rats!", MB_ICONEXCLAMATION);
>
>    Application->Terminate();
>   }
>
> If I comment the error trap out, the BCB5 client runs fine on the NT
> machine.  It connects to the app. server on the Win 2000 PC and can
> write to and read from an MS SQL Server 7 database so long as I don't
> try to call an app. server method using the dispatch interface.  Looks
> like something is wrong with the way I'm trying to bind the interface.
>
> Conversely, if I employ the Bind() syntax used in the BCB4 version of
> the client,
>
>   SMSrvrDisp->Bind(LPDISPATCH(SysManScktConnect->AppServer));,
>
> It errors when both client and server are running on the 2000 machine as
> well.
>
> The BCB4 version of this app. developed on the NT PC allows the client
> to run under any Windows OS ( 95 and above ) with the app. server
> running on any of our NT servers.
>
> What am I missing?
>
> Regards,
> John
Technical Details
Message-ID: <3B0FD6C6.C6EA4680@salts.navy.mil>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3B0F9A6F.C6FC53AA@salts.navy.mil>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,2db86c1267ba4a12
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-05-26 09:43:38 PST
Message-ID: <3B0FD6C6.C6EA4680@salts.navy.mil>
Date: Sat, 26 May 2001 12:16:06 -0400
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: Problem binding dispatch interface when client runs under WinNT
References: <3B0F9A6F.C6FC53AA@salts.navy.mil>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 163.12.6.113
X-Trace: dnews 990893758 163.12.6.113 (26 May 2001 09:15:58 -0700)
Lines: 53
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews