Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages
Started by Emmanuel
Thu, 27 Jan 2005 10:21
How to handle AppServer for SocketConnection?
Author: Emmanuel
Date: Thu, 27 Jan 2005 10:21
Date: Thu, 27 Jan 2005 10:21
40 lines
1802 bytes
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();
}
}
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