Article View: borland.public.cppbuilder.database.multi-tier
Article #728Re: A Problem with TSocketConnection
From: Onat TAKAK
Date: Mon, 05 Mar 2001 11:46
Date: Mon, 05 Mar 2001 11:46
34 lines
1993 bytes
1993 bytes
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:
<97vts0$o494@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!sunqbc.risq.qc.ca!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<01c0a2cc$8fc75f90$1400a8c0@dk>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 03:44:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!sunqbc.risq.qc.ca!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!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 13:46:02 +0200 Organization: Another Netscape Collabra Server User Lines: 36 Message-ID: <97vts0$o494@bornews.inprise.com> References: <01c0a2cc$8fc75f90$1400a8c0@dk> NNTP-Posting-Host: 213.153.192.114 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