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
Author: Onat TAKAK
Date: Mon, 27 Nov 2000 00:00
Date: Mon, 27 Nov 2000 00:00
9 lines
893 bytes
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
Author: vavan
Date: Wed, 29 Nov 2000 07:11
Date: Wed, 29 Nov 2000 07:11
28 lines
1869 bytes
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