🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1905

Callback problem

#1905
From: Nerijus
Date: Sat, 14 Nov 1998 00:00
21 lines
1300 bytes
I created C/S application it uses RDM but also added callbacks. When in
client I create my owm instance of RDM and call one of it's methods I
get the right result but when I bind to the same RDM and call the same
method it returns wrong value. there is a extract of code :

        TCOMIrdmServer i = CordmServer::Create();
        CComPtr <ICPHolder> mCPHolder;
        i->get_GetCPHolder( &mCPHolder );
        i.Unbind();

// Here GetCPHolder is a method in RDM (method is defined in Type
Library)

        idisp.Bind(LPDISPATCH(RemoteServer->AppServer));
        CComPtr <ICPHolder> bmCPHolder;
        idisp.get_GetCPHolder( &bmCPHolder );

// after this bmCPHolder <> mCPHolder

I tried to trace but both of these calls enter in server but they return
different values
Technical Details
Message-ID: <364DB1EF.C48D27A8@proksita.interneka.lt>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,64601af80cccc51a,start
X-Google-Attributes: gidfcd2b,public
From: Nerijus <nerijus@proksita.interneka.lt>
Subject: Callback problem
Date: 1998/11/14
Message-ID: <364DB1EF.C48D27A8@proksita.interneka.lt>
X-Deja-AN: 411813474
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier