🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Onat TAKAK Mon, 27 Nov 2000 00:00
How To Call An RDM Method
#761
Author: Onat TAKAK
Date: Mon, 27 Nov 2000 00:00
9 lines
893 bytes
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.
Re: How To Call An RDM Method
#766
Author: 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.
>
>
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