Article View: borland.public.cppbuilder.database.multi-tier
Article #1394Communicating with the application server.
From: 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.
Technical Details
Message-ID:
<80fe17$9l316@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,6d0ca9fd9d7dfde6,start X-Google-Attributes: gidfcd2b,public From: "Rob Flippo" <hmr@wxs.nl> Subject: Communicating with the application server. Date: 1999/11/11 Message-ID: <80fe17$9l316@forums.borland.com> X-Deja-AN: 547500701 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.cppbuilder.database.multi-tier