Adding madxxx into bpl?

contains all delphi packages mentioned below

Adding madxxx into bpl?

Postby ira » Mon Jul 23, 2012 7:08 am

I create a bpl project. I add madcrypt to uses clause. I compile than IDE ask me to "Add madbasic_...." so madBasic_.dcp exist in Required list.

If my exe use the bpl file/run-time package, it will need madBasic_.bpl, right? How to prevent bpl from using madBasic_ in required list?
ira
 
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Adding madxxx into bpl?

Postby madshi » Mon Jul 23, 2012 5:26 pm

Just remove madBasic_.bpl from the list of runtime packages in your project options. That should be all you need to do. It's that edit box which sits right where you can disable/enable the use of runtime packages in your project settings.
madshi
Site Admin
 
Posts: 9821
Joined: Sun Mar 21, 2004 5:25 pm

Re: Adding madxxx into bpl?

Postby ira » Thu Jul 26, 2012 3:53 am

But my bpl does not use runtime package ( "Build with runtime packages" is not checked)?
ira
 
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Adding madxxx into bpl?

Postby madshi » Thu Jul 26, 2012 5:42 am

Ah, I'm sorry, my fault. Hmmmm... Three questions:

(1) Is your BPL a runtime BPL or is it a design time BPL? In other words: Will your BPL be loaded by the IDE?
(2) Does your exe use runtime packages? I suppose it does, correct?
madshi
Site Admin
 
Posts: 9821
Joined: Sun Mar 21, 2004 5:25 pm

Re: Adding madxxx into bpl?

Postby ira » Fri Jul 27, 2012 8:40 am

1) runtime package
2. yes, it uses runtime package. rtl and mybpl are on the list of runtime packages.

I am missing something?
ira
 
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Adding madxxx into bpl?

Postby madshi » Fri Jul 27, 2012 9:48 am

Theoretically you should be able to add madCrypt to your runtime package without having to use madBasic_.bpl. I'm not 100% sure why the IDE wants require madBasic_, without you telling it so. Maybe it's because madCrypt internally "uses" madTypes? Try adding both madTypes and madCrypt to your bpl. Does it work then?
madshi
Site Admin
 
Posts: 9821
Joined: Sun Mar 21, 2004 5:25 pm

Re: Adding madxxx into bpl?

Postby ira » Wed Aug 01, 2012 3:22 am

I have tried to add madcrypt.pas and madtypes.pas. Delphi 2007 always asks for madBasic_. Delphi XE2 works fine (no need to use madBasic_).
ira
 
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Adding madxxx into bpl?

Postby madshi » Wed Aug 01, 2012 6:55 am

<sigh> Don't know why this happens. Maybe in your BPL project try looking through all project related files created by Delphi with a text editor and check if madBasic_.* is listed anywhere. Then manually delete it. Maybe that helps? If all else fails, you could uninstall madCollection temporarily, with madCrypt.pas and madTypes.pas copied to your BPL folder. If it then *still* asks for madBasic_, something is wrong somewhere because after uninstall the IDE should not even know that madBasic_ exists.
madshi
Site Admin
 
Posts: 9821
Joined: Sun Mar 21, 2004 5:25 pm


Return to madCollection

Who is online

Users browsing this forum: No registered users and 2 guests

cron