🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3631

Re: __declspec(dllimport) in bpl

#3631
From: Remy Lebeau (TeamB)
Date: Wed, 24 May 2006 18:03
27 lines
1982 bytes
"Dmitry Konnov" <dmitry@weblinedesign.biz> wrote in message
news:447411f3$1@newsgroups.borland.com...

> I want each of bpl to be able use one another

You would have to include each package in each other's "Requires" list.  But
I don't know if the VCL allows circular references of packages.  Otherwise,
dynamically load the packages at runtime with the LoadPackage() function.

A better choice is to move the common logic into a third package, such as
common.bpl.  That way, staff.bpl and forms.bpl only contain their specific
logics, and they use common.bpl for the shared stuff.

> but without #include

You still have to use #include statements in order for each package to know
about the other's types.  Separating the logic into packages does not change
that.

> Can you explain how to export VCL class to from one bpl to
> another without #include

That is not how it works.


Gambit
Technical Details
Message-ID: <4474a0aa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <447171ab@newsgroups.borland.com> <4471f45e$1@newsgroups.borland.com> <4472ea32$1@newsgroups.borland.com> <44734520$1@newsgroups.borland.com> <447411f3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a1cb33bc02ad1dec
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <447171ab@newsgroups.borland.com> <4471f45e$1@newsgroups.borland.com> <4472ea32$1@newsgroups.borland.com> <44734520$1@newsgroups.borland.com> <447411f3$1@newsgroups.borland.com>
Subject: Re: __declspec(dllimport)  in bpl 
Date: Wed, 24 May 2006 11:03:49 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4474a0aa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148493994 68.69.17.41 (24 May 2006 11:06:34 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail