I've been told to set up our main app to use packages (both dynamic and static), and 
whenever I 
use the vcldb40 package (standard VCL db stuff) I get a "Resource DBN_FIRST not found" 
message.  
I've traced this to a unit that loads the glyph for a button at run time using 
TBitMap's 
.LoadFromResourceName method.  Poking around, I've discovered that DBN_FIRST is in the 
DBCTRLS.RES file - part of Delphi's standard package, which I'm assuming is therefore 
in the 
vcldb40 package.

(This is Delphi 4 BTW)

Has anyone come acrosss this before?  i.e. If compiled without packages, the 
LoadFromResourceName call works fine, but when packages are used it falls over.

It's not a problem anymore, I'm going to set the buttons at design time.  I'm just 
curious as 
to why it doesn't work when using packages, and was wondering if anyone had had 
simlilar 
problems.  (I'll be doing more work with packages and possibly also with dynamically 
loaded 
resources later on.)

(The buttons NEVER change, and every other form in the project with (exactly) the same 
buttons 
has the glyphs set at design time - this is the only unit where the 
LoadFromResourceName method 
is ever called, so why it was done this way I have NO idea.)

Matt.



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to