🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: AppServer Bind through COM+

#354
From: Andy Walker
Date: Tue, 20 Nov 2001 11:25
37 lines
1879 bytes
This is how I solved it,  

IDispatch* disp = (IDispatch*)(DCOMConnection->AppServer);
AppServer = new IMDbRDMDisp((IMDbRDM*)disp);
AppServer->xyz ();

Andy

"Andy" <andy@iola.co.uk> wrote:
>
>I'm not really sure if this is the right place but here goes.
>
>I had a MIDAS AppServer (EXE) that had some additional methods 
>defined and I connected and used these methods from the client
>by binding to the dispatch interface (using Bind),
>
>	AppServer = new ITMDbRDMDisp ();
>	AppServer->Bind (DCOMConnection->GetServer ());
>	AppServer->xyz ();
>
>All worked fine.  However, I have now converted the AppServer 
>to a DLL and installed it into Component Services (win2k) COM+.
>Now, whenever I Bind, it fails.  I don't get an error but 
>IsBound returns false.  All subsequent calls to the AppServer
>fail with an assertion (understandably).
>
>The questions,
>
>How do I bind to the dispatch inteface of a DLL running within
>COM+?
>Or in fact, is this not the correct way to call my methods?
>
>Any suggestions greatly appreciated.
>
>Andy
>
Technical Details
Message-ID: <3bfa3d8c_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3bf4223f$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,dd3cea6be75e8cca
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-11-20 03:25:37 PST
From: "Andy Walker" <andy@iola.co.uk>
Sender: "Andy Walker" <andy@iola.co.uk>
Reply-To: "Andy Walker" <andy@iola.co.uk>
Subject: Re: AppServer Bind through COM+
Newsgroups: borland.public.cppbuilder.database.multi-tier
X-User-Info: 159.235.50.12 159.235.50.12    
References:  <3bf4223f$1_2@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3bfa3d8c_1@dnews>
Date: 20 Nov 2001 03:25:00 -0800
X-Trace: dnews 1006255500 207.105.83.65 (20 Nov 2001 03:25:00 -0800)
Lines: 38
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews