Article View: borland.public.cppbuilder.database.multi-tier
Article #731Re: A Problem with TSocketConnection
From: yc
Date: Tue, 06 Mar 2001 09:27
Date: Tue, 06 Mar 2001 09:27
69 lines
2893 bytes
2893 bytes
Thank you for your answer.
I using your method to try.When the paramters of method in the interface
are single type(as int ,BSTR..),there is no problem.But I use a IStringPtr*
paramter ,the problem also is found .
Anothe Problem:
I open a example of C++ Builder 5 in folder :$(BCB)\Examples\Midas\Adhoc.It
use DCOM connect to server.I modify it using Socket to connect server.When
I comple and run it.There is a error when it is running:
"Table :Missing TableName property".
I find the code in method of interface has no infect .the TableName and
DataBase property of Table in server have no changed.Why?
Thanks.
Onat TAKAK <otakak@turk.net> ~{1;P4Hk5=NDUB~} <9809lp$74c3@bornews.inprise.com>
~{VP~}...
>
> I am Sorry,
> The Last line should be MyDisp.DoSomething();
>
> Onat TAKAK <otakak@turk.net> wrote in message
> news:97vts0$o494@bornews.inprise.com...
> > HELLO,
> > I Use The Connection as follow and it works fine.
> >
> >
> > IMyInterface * anInterface;
> > anInterface = (IMyInterface *) LPDISPATCH(MyConnection->AppServer);
> > IMyInterfaceDisp MyDisp(anInterface);
> >
> > MyInterface.DoSomething();
> > ....
> >
> >
> >
> >
> > yc <glyc@sina.com.cn> wrote in message
> news:01c0a2cc$8fc75f90$1400a8c0@dk...
> > > I need to Create a MIDAS Applicaton using TSocketConnection.But when
I
> > > access a interface in the remote applicaton server,there is a
error.the
> > > interface has a parameter,it's type is 'IStringPtr *'.If I use
> > > TDCOMConnection,there is no any errror.Why?
> > > I access the interface as the example in the helpfile :
> > >
> > > IDispatch* disp = (IDispatch*)(DMClient->Connection->AppServer);
> > > IYoyoDisp TempInterface((IYoyo*)disp);
> > > if(TempInterface.InsertRecord(WideString(TableName),Value)!=S_OK)
> > >
> > >
> >
> Application->MessageBox("~{Or7~NqFwLa=;6)5%J'0\#!~}","~{7~NqFw75;X4mNs~}",MB
> > _OK|MB_I
> > > CONERROR);
> > >
> > > If someone has the answer of this problem,please tell me and give me
a
> > > example of the answer.
> > > Thanks.
> > >
> >
> >
>
>
>
Technical Details
Message-ID:
<01c0a61f$5fabde70$1400a8c0@dk>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!61.139.222.135References:
<01c0a2cc$8fc75f90$1400a8c0@dk> <97vts0$o494@bornews.inprise.com> <9809lp$74c3@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,fd9c85ce268882c5 X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-03-06 01:28:07 PST From: "yc" <glyc@sina.com.cn> Subject: Re: A Problem with TSocketConnection Newsgroups: borland.public.cppbuilder.database.multi-tier References: <01c0a2cc$8fc75f90$1400a8c0@dk> <97vts0$o494@bornews.inprise.com> <9809lp$74c3@bornews.inprise.com> Message-ID: <01c0a61f$5fabde70$1400a8c0@dk> X-Newsreader: Microsoft Internet News 4.70.1155 NNTP-Posting-Host: 61.139.222.135 Date: 6 Mar 2001 01:27:36 -0800 X-Trace: 6 Mar 2001 01:27:36 -0800, 61.139.222.135 Lines: 70 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!61.139.222.135