๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
4 messages
4 total messages Started by Panagiotis L. Staikos Mon, 05 Jul 1999 00:00
ClientDataSet - TProvider Communication Problem...
#1624
Author: Panagiotis L. Staikos
Date: Mon, 05 Jul 1999 00:00
30 lines
1994 bytes
I have add at server Side (Remote DataModule)
a TQuery Component and a TProvider(TProvider or TDataSetProvider)
Component.
I export the TProvider Component and it's DataSet property points to
TQuery. The TQuery component has a SQL Statement.
From Client Side i have a MIDAS, ClientDataset, DataSource, DBGrid
Components.
While i am connecting with my Server,when  i change the active property
of The ClientDataSet to true
(ClientDataSet Provider Property points to the Above TProvider)
i get the Error :
'src->QueryInterface(GetIID(),(LPVOID*)(&intf))': No such interface
supported
@ C:\Program Files\Borland\CBuilder4\invlude\vcl\utilcls.h/2014
Press [Y]es to terminate, [N]o to continue and [C]ancel to Debug.

All the Providers from the server are shown in the drop-down list in the
Provider property
of the ClientDataSet Component!!!

Prior the patch#1 i did't have any problem....
More spesific the code that i use it works with C++Builder3, and
C++Builder4 withou the path#1!!!
How is the right connection between ClientDataSet and a Provider?

I don't understand this error beacuse i think that all is ok.....
(This problem was stop me since a week...)
May i have a answer to this problem?

Thanks. Panagiotis Staikos from Greece.
RE: ClientDataSet - TProvider Communication Problem...
#1628
Author: Martin Hart
Date: Thu, 08 Jul 1999 00:00
49 lines
2510 bytes
The answer was given a few posts away. Here is the answer.

Mark Johnson said:

-----------------------------------------------
I had this same problem.  The cause is the new tlb editor creates code with
a type IProviderPtr replacing  what used to be IProvider* in the generated
code.  If you go through all the generated source and replace IProviderPtr
with IProvider* the remote data modules will now work.  Hope this helps.

Mark Johnson
-----------------------------------------------


Panagiotis L. Staikos <pstaiko@ekt.gr> escribi๏ฟฝ en el mensaje de noticias
37805D31.B7AF2946@ekt.gr...
> I have add at server Side (Remote DataModule)
> a TQuery Component and a TProvider(TProvider or TDataSetProvider)
> Component.
> I export the TProvider Component and it's DataSet property points to
> TQuery. The TQuery component has a SQL Statement.
> From Client Side i have a MIDAS, ClientDataset, DataSource, DBGrid
> Components.
> While i am connecting with my Server,when  i change the active property
> of The ClientDataSet to true
> (ClientDataSet Provider Property points to the Above TProvider)
> i get the Error :
> 'src->QueryInterface(GetIID(),(LPVOID*)(&intf))': No such interface
> supported
> @ C:\Program Files\Borland\CBuilder4\invlude\vcl\utilcls.h/2014
> Press [Y]es to terminate, [N]o to continue and [C]ancel to Debug.
>
> All the Providers from the server are shown in the drop-down list in the
> Provider property
> of the ClientDataSet Component!!!
>
> Prior the patch#1 i did't have any problem....
> More spesific the code that i use it works with C++Builder3, and
> C++Builder4 withou the path#1!!!
> How is the right connection between ClientDataSet and a Provider?
>
> I don't understand this error beacuse i think that all is ok.....
> (This problem was stop me since a week...)
> May i have a answer to this problem?
>
> Thanks. Panagiotis Staikos from Greece.
>
>
>
Re: ClientDataSet - TProvider Communication Problem...
#1631
Author: Panagiotis L. Staikos
Date: Fri, 09 Jul 1999 00:00
25 lines
1686 bytes
Thanks for your answer.
I was tried to fix this problem the previous week...
without check this newsgroup...
But i make a several changes in my automation object
and each time i replace all this types.
I hope to solve this problem soon...

Thanks agian. Panagiotis Staikos.(Sorry for my english... i don't know to write
very well)

Martin Hart wrote:

> The answer was given a few posts away. Here is the answer.
>
> Mark Johnson said:
>
> -----------------------------------------------
> I had this same problem.  The cause is the new tlb editor creates code with
> a type IProviderPtr replacing  what used to be IProvider* in the generated
> code.  If you go through all the generated source and replace IProviderPtr
> with IProvider* the remote data modules will now work.  Hope this helps.
>
> Mark Johnson
> -----------------------------------------------
>
Re: ClientDataSet - TProvider Communication Problem...
#1646
Author: zheaat
Date: Thu, 15 Jul 1999 00:00
7 lines
804 bytes
There is a better idea .
You can replace the file  "tlib40.bpl" with the old file,and then regenerate
code
(like this: 1.add a method in tlb editor,2.save  3.delete the
methd,4.resave),.
now you can rebuild your app.
Shuijin Zheng
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