🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How To Call An RDM Method

#766
From: vavan
Date: Wed, 29 Nov 2000 07:11
28 lines
1869 bytes
A little snippet from my code:


you can invoke your method in a such way:
UserId=DCOM->AppServer.Exec(Function("Connect")<<pf->UserNameEdit->Text<<pf-
>PasswordEdit->Text);

or:
IDispatch* disp=(IDispatch*)(DCOM->AppServer);
IRDMTreatyDisp Srv((IRDMTreaty*)disp);
Serv.Bind(Srv,1); // in my case I had to make this binding
UserId=Serv.Connect(WideString(pf->UserNameEdit->Text),WideString(pf->Passwo
rdEdit->Text));

"Onat TAKAK" <otakak@turk.net> �������/�������� � �������� ���������:
news:8vuf57$ff911@bornews.inprise.com...
> Hello,
> I have an RDM with a method DoSomething.
> I have been trying to call this method from the client , unfortunately I
> couldn't succeed. In help files, it is said that
>  the AppServer property of the TMidasConnection can be used to get a
> dispatch Interface and then by using thisdispatch interface, the method
can
> be called.  But I could not achieve this.
>
> Can anybody help on this.
>
>
Technical Details
Message-ID: <3a24ac49_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!195.170.216.131
References: <8vuf57$ff911@bornews.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fcd2b,5c34a902031293b2
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2000-11-28 23:13:00 PST
From: "vavan" <vavan@santel.ru>
Newsgroups: borland.public.cppbuilder.database.multi-tier
References: <8vuf57$ff911@bornews.inprise.com>
Subject: Re: How To Call An RDM Method
Date: Wed, 29 Nov 2000 10:11:49 +0300
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 195.170.216.131
Message-ID: <3a24ac49_1@dnews>
X-Trace: 28 Nov 2000 23:12:09 -0800, 195.170.216.131
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!195.170.216.131