🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to handle AppServer for SocketConnection?

#64
From: Emmanuel
Date: Thu, 27 Jan 2005 10:21
40 lines
1802 bytes
I find that the follow example just work in DCOM but not work in
SocketConnection
do any body have example for SocketConnection??

C:\Program Files\Borland\CBuilder6\Examples\Midas\Adhoc

void __fastcall TFormMain::cmbAliasChange(TObject *Sender)
{
  IAdHcDMDisp AdhcServ;
  _di_IStrings Temp;
  IStrings* * Value = (IStrings* * )new IStringsPtr();
  int i;

  __try
  {
    if (!DCOMConnection1->Connected)
      DCOMConnection1->Connected = true;
    AdhcServ.Bind(DCOMConnection1->GetServer());
    __try
    {
      cmbTables->Items->Clear();
      GetOleStrings(cmbTables->Items, Temp);
      *Value = Temp;

AdhcServ->GetTableNames(WideString(cmbAlias->Items->Strings[cmbAlias->ItemIn
dex]),
                              Value);
    }
    __finally
    {
      if (Value)
        delete Value;
    }
  }
  __finally
  {
    if (AdhcServ.IsBound())
      AdhcServ.Unbind();
  }
}
Technical Details
Message-ID: <41f8bfe9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,ebf2bf784cc9401a,start
X-Google-Attributes: gidfcd2b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: How to handle AppServer for SocketConnection?
Date: Thu, 27 Jan 2005 18:21:47 +0800
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 202.146.98.71
Message-ID: <41f8bfe9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106821097 202.146.98.71 (27 Jan 2005 02:18:17 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail