Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Jan : Static linked bpls.

www.cryer.info
Managed Newsgroup Archive

Static linked bpls.

Subject:Static linked bpls.
Posted by:"De Armas, Adrian" (adearm..@2vias.com.ar)
Date:Mon, 8 Jan 2007 14:29:40

Hi,
I am having troubles understanding how bpls work.
My idea is the following:
I have one bpl where I keep base clases for all other modules my system
should have. So, I created "BaseModule.bpl".
Now I created another bpl for security reasons. In this bpl I have the
login form, the password validation and someother things related to
security.

My idea is create modules whick statically link "BaseModule.bpl", this
modules may be "Clients.bpl", "Banks.bpl", etc. These new modules use
clases declared in BaseModule.

In my application I call the security.bpl at startup and then load
dynamically "Clients.bpl", "Banks.bpl", etc when the user uses the menu
items.

In "Project | Options | Packages" I checked "Build with runtime
packages" and I wrote ONLY "BaseModule.bpl;Security.bpl"  in the editbox.
It works exactly as I thought in my machine, but when I copy this exe &
bpls the program closes because it can't load "rtl100.bpl".
What am I doing wrong?... all the needed bpls which are not specified in
the editbox under "Build with runtime packages" shouldn't be linked into
the exe?
Is it possible what I want to do?

I am sorry if this is so confusing but english is not my native language
and it is difficult to me to explain what happens.

Thank you in advanced


REgards

Adrian

PS: If this is not the right place to post this kind of question, please
let me know.

Replies:

www.cryer.info
Managed Newsgroup Archive