🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SharedConnection in C++ Builder. Is it posible?

#251
From: John Rambo
Date: Fri, 12 Jul 2002 11:50
16 lines
1981 bytes
It is quite simple, though !

Just use the type library editor and append a new property to the parent
module that has the sub module as an out-param, for example ISubModule* , if
the name of the sub remote module is SubModule. That results in a get_XXX
method with an ISubModule** as function parameter. In the XXXImpl.cpp file
of the parent remote data module, you have to find the implementation of
this method and create the SubModule with the template function automaticly
created at the end of the TLB. This function's name should look like
CoXXX::create(...), in this case CoSubModule::create, and the parameter of
the create-method is the parameter of the function in which you use this
method, normally this name is VALUE. So you write in the XXXImpl.cpp in the
try-block which you find in the get_XXX method the line
"CoSubModule::create(value);" and that is all. I do not know it all by heart
but I did this many times and it works. You will find out the correct names
of the parameters and the functions once you have done it yourself.
Technical Details
Message-ID: <3d2ec3a7$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!west.cox.net!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3d10af5f_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,291f619c44061e56
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2002-07-12 05:29:46 PST
From: "John Rambo" <u2128@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
References: <3d10af5f_2@dnews>
Subject: Re: SharedConnection in C++ Builder. Is it posible?
Date: Fri, 12 Jul 2002 13:50:59 +0200
Lines: 18
Organization: US NAvy
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 134.245.48.62
Message-ID: <3d2ec3a7$1_1@dnews>
X-Trace: dnews 1026474919 134.245.48.62 (12 Jul 2002 04:55:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!west.cox.net!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews