Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unit cross referencing in BPL

Status
Not open for further replies.

heecm

Programmer
Dec 3, 2003
10
JP
Hi,
I am a newbie in bpl and run into the following problem.

My application structure is like this:
ABC.exe
CdsRgy.pas (unit only)
DlgStr.pas (unit only)
CdsLgn (form)
.....

PlgSet.bpl
CdsEnv (form)
CdsQly.pas (unit only)

PlgSet.bpl will be loaded dynamically at runtime.
CdsRgy.pas holds application global data with lots of getter and setter.

Now, CdsEnv form in PlgSet.bpl needs to get some application environment data from CdsRgy.pas.

When I put CdsRgy in CdsEnv uses clause, the compiler complain:

"Unit 'CdsRgy' implicitly imported into package 'PlgSet'"

"Duplicate constructor 'TCdsRegistry.Create' with identical parameters will be inacessible from C++"

What does these two warnings mean?

And also, I couldn't access the property inside CdsRgy. When I try to access, it complains:

"Unable to invoke Code Completion due to errors in source code"

Could anyone please enlighten me on how to cross reference unit in such situation.

Basically what I want to do is to access a piece of memory in exe from my dynamically loaded bpl.

Thanks.

regards,
CM

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top