Article View: borland.public.cppbuilder.database.multi-tier
Article #730Re: A Problem with TSocketConnection
From: Onat TAKAK
Date: Mon, 05 Mar 2001 15:06
Date: Mon, 05 Mar 2001 15:06
44 lines
2290 bytes
2290 bytes
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:
<9809lp$74c3@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!EU.net!blackbush.xlink.net!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mailReferences:
<01c0a2cc$8fc75f90$1400a8c0@dk> <97vts0$o494@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-05 07:14:09 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!EU.net!blackbush.xlink.net!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail From: "Onat TAKAK" <otakak@turk.net> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Re: A Problem with TSocketConnection Date: Mon, 5 Mar 2001 17:06:23 +0200 Organization: Another Netscape Collabra Server User Lines: 46 Message-ID: <9809lp$74c3@bornews.inprise.com> References: <01c0a2cc$8fc75f90$1400a8c0@dk> <97vts0$o494@bornews.inprise.com> NNTP-Posting-Host: 195.214.156.184 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200