Thread View: borland.public.cppbuilder.database.multi-tier
4 messages
4 total messages
Started by Rob Flippo
Thu, 11 Nov 1999 00:00
Communicating with the application server.
Author: Rob Flippo
Date: Thu, 11 Nov 1999 00:00
Date: Thu, 11 Nov 1999 00:00
49 lines
1416 bytes
1416 bytes
Hello,
I'm creating a client server application using the TSocketConnection.
Retrieving data from the server is working fine. But,
At the server side i have created a method in the Type library as follows:
Method - ShowInfo
Params sheet
retval = HRESULT
name = id
type = int
modifier = [in]
STDMETHODIMP TMyAppServerImpl::ShowInfo(int id)
{
try
{
ShowMessage(IntToStr(id));
}
catch(Exception &e)
{
return Error(e.Message.c_str(),IID_IMyAppServer);
}
return S_OK;
}
At the client side i have a function:
SetInfo()
{
IMyAppServerDisp
TempInterface(LPDISPATCH(SocketConnection1->AppServer));
TempInterface->ShowInfo((int)10);
}
If i run SetInfo() i'll get the following message:
p->QueryInterface(GetID(),(LPVOID*)(&intf)) No such interface supported
utilcls.h/1977
Can someone help me with this ?
I'v installed servicepack 1 en 2.
Thanks in advance Rob.
Re: Communicating with the application server.
Author: Roberto Maiorca
Date: Fri, 12 Nov 1999 00:00
Date: Fri, 12 Nov 1999 00:00
3 lines
604 bytes
604 bytes
Insert in your Server_TLB.h : #define IProviderPtr IProvider* You have to do this every time the type library has been refreshed!
Re: Communicating with the application server.
Author: Rob Flippo
Date: Sun, 14 Nov 1999 00:00
Date: Sun, 14 Nov 1999 00:00
15 lines
985 bytes
985 bytes
Roberto Maiorca heeft geschreven in bericht <382be115.3856305@forums.inprise.com>... >Insert in your Server_TLB.h : >#define IProviderPtr IProvider* >You have to do this every time the type library has been refreshed! I'v inserted the define statement and rebuild the server and the client. But i still get the same error message. When i use a DCOMconnection on my client it's working. Can you help me please ? Rob
Re: Communicating with the application server.
Author: vavan
Date: Wed, 17 Nov 1999 00:00
Date: Wed, 17 Nov 1999 00:00
23 lines
1262 bytes
1262 bytes
Could you explain what your problem? I haven't seen original message... Rob Flippo <hmr@wxs.nl> wrote in message news:80mffc$5ie19@forums.borland.com... > > Roberto Maiorca heeft geschreven in bericht > <382be115.3856305@forums.inprise.com>... > >Insert in your Server_TLB.h : > >#define IProviderPtr IProvider* > >You have to do this every time the type library has been refreshed! > > I'v inserted the define statement and rebuild the server and the client. > But i still get the same error message. > > When i use a DCOMconnection on my client it's working. > > Can you help me please ? > > Rob > > > >
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