Article View: borland.public.cppbuilder.database.multi-tier
Article #1630Re: Calling a method in an application server
From: Steve Pietrykoski
Date: Thu, 08 Jul 1999 00:00
Date: Thu, 08 Jul 1999 00:00
25 lines
1454 bytes
1454 bytes
Avinash, I found out through tech support that the documentation on this is incorrect and was given the proper technique, which I have turned into a macro: #define APPSERVER_INTERFACE( CONNECTION, SERVERNAME, VAR ) \ IDispatch * VAR##Disp = (IDispatch *)(CONNECTION->AppServer); \ I##SERVERNAME * VAR##Intf = reinterpret_cast<I##SERVERNAME *>(VAR##Disp); \ I##SERVERNAME##Disp VAR( VAR##Intf ); In the context of the documentation example, you would instead declare APPSERVER_INTERFACE( MyConnection, MyAppServer, TempInterface ); Happy Coding, Steve Pietrykoski Avinash Meetoo wrote: > I am trying to call a method found in an application server. According to > the documentation, this will do: > > IMyAppServerDisp TempInterface(LPDISPATCH(MyConnection->AppServer)); > TempInterface->SpecialMethod(x,y);
Technical Details
Message-ID:
<3784D029.182AD148@artisansoftware.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7m2d20$heo13@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,e7bcc5ffc8eaa4a6 X-Google-Attributes: gidfcd2b,public From: Steve Pietrykoski <steve@artisansoftware.com> Subject: Re: Calling a method in an application server Date: 1999/07/08 Message-ID: <3784D029.182AD148@artisansoftware.com> X-Deja-AN: 498710387 Content-Transfer-Encoding: 7bit References: <7m2d20$heo13@forums.borland.com> To: ame@dcdmc.intnet.mu X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Artisan Software, LLC Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier